← Back to team overview

yade-dev team mailing list archive

Re: cmdGui

 

> I can't load file a.xml generated by simple-scene.py.
> Loading stoped after message:
> "INFO  core/Omega.cpp:326 loadSimulation: Loading file a.xml"
> File a.xml contain strange symbols, for example as viewing in vim:
> line 10 <functorArguments^C^@^@^@ _className_=...
> I attached this a.xml.
>   
Hi, I am wondering what the cause of that might be, since serialization
to xml is completely independent of python and cmdGui. It seems there is
some binary garbage instead of the first tag. Are you running the latest
SVN? I am attaching my a.xml, which works very well. Can you try loading
it and the saving again (run "yade-something -N cmdGui", then type
o=Omega(); o.load('a.xml'); o.save('b.xml'); ) to see if you get correct
output or not?

Regards, Vaclav

<Yade>
	<rootBody _className_="MetaBody"  id="0" groupMask="1" isDynamic="0" clumpId="-1" recover="0" recoverDt="1" recoverCurrentIteration="1" recoverStopAtIteration="1" recoverSimulationTime="1">
		<physicalParameters _className_="ParticleParameters"  se3="{0 0 0 1 0 0 0}" mass="0" velocity="{0 0 0}" />
		<geometricalModel />
		<interactingGeometry _className_="MetaInteractingGeometry"  diffuseColor="{0 0 1}" />
		<boundingVolume _className_="AABB"  diffuseColor="{0 0 1}" />
		<engines size="13">
			<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_="GlobalStiffnessCounter"  interval="50" sdecGroupMask="1" momentRotationLaw="1" assumeElasticSpheres="1" />
			<engines _className_="GlobalStiffnessTimeStepper"  active="1" timeStepUpdateInterval="50" sdecGroupMask="1" defaultDt="0.0001" previousDt="1" timestepSafetyCoefficient="0.25" computedOnce="0" />
			<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="[Force Momentum GlobalStiffness]" />
			<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="2000" velocity="{0 0 0}" inertia="{100000 100000 100000}" angularVelocity="{2.225073858507246e-308 6.953144910350503e-310 6.953144910364732e-310}" young="3000000000" poisson="0.3" frictionAngle="4.495997377155344e-322" />
					<geometricalModel _className_="Box"  diffuseColor="{1 0 0}" wire="0" visible="1" shadowCaster="0" extents="{0.5 0.5 0.5}" />
					<interactingGeometry _className_="InteractingBox"  diffuseColor="{0 1 0}" extents="{0.5 0.5 0.5}" />
					<boundingVolume _className_="AABB"  diffuseColor="{0 0 1}" />
				</body>
				<body _className_="Body"  id="1" groupMask="1" isDynamic="1" clumpId="-1">
					<physicalParameters _className_="BodyMacroParameters"  se3="{0 0 2 1 0 0 0}" mass="1000" velocity="{0 0 0}" inertia="{70000 70000 70000}" angularVelocity="{0 0 1.911294927199446e-316}" young="3000000000" poisson="0.3" frictionAngle="0" />
					<geometricalModel _className_="Sphere"  diffuseColor="{0 1 0}" wire="0" visible="1" shadowCaster="0" radius="1" />
					<interactingGeometry _className_="InteractingSphere"  diffuseColor="{1 0 0}" radius="1" />
					<boundingVolume _className_="AABB"  diffuseColor="{0 0 1}" />
				</body>
			</body>
		</bodies>
		<transientInteractions _className_="InteractionVecSet" >
			<interaction size="0" />
		</transientInteractions>
		<persistentInteractions _className_="InteractionVecSet" >
			<interaction size="0" />
		</persistentInteractions>
		<physicalActions _className_="PhysicalActionVectorVector" >
			<action size="0" />
		</physicalActions>
	</rootBody>
</Yade>
_______________________________________________
yade-dev mailing list
yade-dev@xxxxxxxxxxxxxxxx
https://lists.berlios.de/mailman/listinfo/yade-dev

References