← Back to team overview

yade-dev team mailing list archive

svn1376 bug

 

sega@sega:~/YADE/data> yade-trunk simple-scene.py
Constructing ClassFactory  (if multiple times - check '-rdynamic' flag!).
Constructing SerializableSingleton  (if multiple times - check '-rdynamic' flag!).
WARNING: cannot open file used for capillary law, in TriaxalTestWater
Running script simple-scene.py
__   __    ____          ____                      _
\ \ / /_ _|  _ \  ___   / ___|___  _ __  ___  ___ | | ___
 \ V / _` | | | |/ _ \ | |   / _ \| '_ \/ __|/ _ \| |/ _ \
  | | (_| | |_| |  __/ | |__| (_) | | | \__ \ (_) | |  __/
  |_|\__,_|____/ \___|  \____\___/|_| |_|___/\___/|_|\___|

In [1]: o.load('/tmp/a.xml')
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)

/home/sega/YADE/data/<ipython console> in <module>()

RuntimeError: Bad Attribute value (bad lexical_cast), Tag: "rootBody", Attribute: "isDynamic", Line: 2

In [2]:  
-- 
Best regards, Sergei D.
<Yade>
	<rootBody _className_="MetaBody"  id="0" groupMask="1" isDynamic="192" clumpId="-1" dt="1e-06" recover="0" recoverCurrentIteration="1" recoverStopAtIteration="1" recoverSimulationTime="1">
		<physicalParameters _className_="ParticleParameters"  se3="{2.317785318897809e-310 5.200357124492458e-317 5.208693000069092e-317 1 0 0 0}" mass="0" velocity="{0 0 0}" />
		<geometricalModel />
		<interactingGeometry _className_="MetaInteractingGeometry"  diffuseColor="{1 1 1}" />
		<boundingVolume _className_="AABB"  diffuseColor="{5.106860141673461e-317 877635839511579.1 5.191017307523475e-317}" />
		<engines size="11">
			<engines _className_="PhysicalActionContainerReseter"  />
			<engines _className_="BoundingVolumeMetaEngine"  functorNames="[[InteractingSphere AABB InteractingSphere2AABB] [InteractingBox AABB InteractingBox2AABB] [MetaInteractingGeometry AABB MetaInteractingGeometry2AABB]]">
				<functorArguments size="3">
					<functorArguments _className_="InteractingSphere2AABB"  aabbEnlargeFactor="1" />
					<functorArguments _className_="InteractingBox2AABB"  />
					<functorArguments _className_="MetaInteractingGeometry2AABB"  />
				</functorArguments>
			</engines>
			<engines _className_="PersistentSAPCollider"  noTransientIfPersistentExists="0" haveDistantTransient="0" />
			<engines _className_="InteractionGeometryMetaEngine"  functorNames="[[InteractingSphere InteractingSphere InteractingSphere2InteractingSphere4SpheresContactGeometry] [InteractingBox InteractingSphere InteractingBox2InteractingSphere4SpheresContactGeometry]]">
				<functorArguments size="2">
					<functorArguments _className_="InteractingSphere2InteractingSphere4SpheresContactGeometry"  interactionDetectionFactor="1" />
					<functorArguments _className_="InteractingBox2InteractingSphere4SpheresContactGeometry"  />
				</functorArguments>
			</engines>
			<engines _className_="InteractionPhysicsMetaEngine"  functorNames="[[BodyMacroParameters BodyMacroParameters SimpleElasticRelationships]]">
				<functorArguments size="1">
					<functorArguments _className_="SimpleElasticRelationships"  />
				</functorArguments>
			</engines>
			<engines _className_="ElasticContactLaw"  sdecGroupMask="1" momentRotationLaw="1" />
			<engines _className_="GravityEngine"  gravity="{0 0 -9.81}" />
			<engines _className_="PhysicalActionDamper"  functorNames="[[Force ParticleParameters CundallNonViscousForceDamping] [Momentum RigidBodyParameters CundallNonViscousMomentumDamping]]">
				<functorArguments size="2">
					<functorArguments _className_="CundallNonViscousForceDamping"  damping="0.2" />
					<functorArguments _className_="CundallNonViscousMomentumDamping"  damping="0.2" />
				</functorArguments>
			</engines>
			<engines _className_="PhysicalActionApplier"  functorNames="[[Force ParticleParameters NewtonsForceLaw] [Momentum RigidBodyParameters NewtonsMomentumLaw]]">
				<functorArguments size="2">
					<functorArguments _className_="NewtonsForceLaw"  />
					<functorArguments _className_="NewtonsMomentumLaw"  />
				</functorArguments>
			</engines>
			<engines _className_="PhysicalParametersMetaEngine"  functorNames="[[ParticleParameters LeapFrogPositionIntegrator]]">
				<functorArguments size="1">
					<functorArguments _className_="LeapFrogPositionIntegrator"  />
				</functorArguments>
			</engines>
			<engines _className_="PhysicalParametersMetaEngine"  functorNames="[[RigidBodyParameters LeapFrogOrientationIntegrator]]">
				<functorArguments size="1">
					<functorArguments _className_="LeapFrogOrientationIntegrator"  />
				</functorArguments>
			</engines>
		</engines>
		<initializers size="2">
			<initializers _className_="PhysicalActionContainerInitializer"  physicalActionNames="[]" />
			<initializers _className_="BoundingVolumeMetaEngine"  functorNames="[[InteractingSphere AABB InteractingSphere2AABB] [InteractingBox AABB InteractingBox2AABB] [MetaInteractingGeometry AABB MetaInteractingGeometry2AABB]]">
				<functorArguments size="3">
					<functorArguments _className_="InteractingSphere2AABB"  aabbEnlargeFactor="1" />
					<functorArguments _className_="InteractingBox2AABB"  />
					<functorArguments _className_="MetaInteractingGeometry2AABB"  />
				</functorArguments>
			</initializers>
		</initializers>
		<bodies _className_="BodyRedirectionVector" >
			<body size="2">
				<body _className_="Body"  id="0" groupMask="1" isDynamic="0" clumpId="-1">
					<physicalParameters _className_="BodyMacroParameters"  se3="{0 0 0 1 0 0 0}" mass="2400" velocity="{0 0 0}" inertia="{4800 4800 4800}" angularVelocity="{0 0 0}" young="30000000000" poisson="0.3" frictionAngle="0.5236" />
					<geometricalModel _className_="Box"  diffuseColor="{1 0 0}" wire="0" visible="1" shadowCaster="0" extents="{0.5 0.5 0.5}" />
					<interactingGeometry _className_="InteractingBox"  diffuseColor="{1 0 0}" extents="{0.5 0.5 0.5}" />
					<boundingVolume _className_="AABB"  diffuseColor="{0 1 0}" />
				</body>
				<body _className_="Body"  id="1" groupMask="1" isDynamic="1" clumpId="-1">
					<physicalParameters _className_="BodyMacroParameters"  se3="{0 0 2 1 0 0 0}" mass="10053.09649148734" velocity="{0 0 0}" inertia="{4021.238596594935 4021.238596594935 4021.238596594935}" angularVelocity="{0 0 0}" young="30000000000" poisson="0.3" frictionAngle="0.5236" />
					<geometricalModel _className_="Sphere"  diffuseColor="{0 1 0}" wire="0" visible="1" shadowCaster="0" radius="1" />
					<interactingGeometry _className_="InteractingSphere"  diffuseColor="{0 1 0}" radius="1" />
					<boundingVolume _className_="AABB"  diffuseColor="{0 1 0}" />
				</body>
			</body>
		</bodies>
		<transientInteractions _className_="InteractionVecSet" >
			<interaction size="0" />
		</transientInteractions>
		<persistentInteractions _className_="InteractionVecSet" >
			<interaction size="0" />
		</persistentInteractions>
		<physicalActions _className_="PhysicalActionVectorVector" >
			<action size="0" />
		</physicalActions>
		<miscParams size="0" />
	</rootBody>
</Yade>
_______________________________________________
yade-dev mailing list
yade-dev@xxxxxxxxxxxxxxxx
https://lists.berlios.de/mailman/listinfo/yade-dev

Follow ups

References