File: Bar16-fem-implicit-Vec3f.pscn

package info (click to toggle)
sofa-framework 1.0~beta4-12
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 88,828 kB
  • ctags: 27,300
  • sloc: cpp: 151,126; ansic: 2,387; xml: 581; sh: 417; makefile: 68
file content (19 lines) | stat: -rwxr-xr-x 1,069 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<Node name="root" dt="0.04" showBehaviorModels="1" showCollisionModels="0" showMappings="0" showForceFields="1">
<?php $size=$_ENV["s"]; if (!$size) $size=10; ?>
	<Node name="M1">
		<!--<Object type="CGImplicit" iterations="10" tolerance="1e-15" threshold="1e-15" />-->                <Object type="EulerImplicit" />                <Object type="CGLinearSolver" iterations="10" tolerance="1e-15" threshold="1e-15"/>
		<Object type="MechanicalObject" template="Vec3f" />
<!--		<Object type="UniformMass" totalmass="20" /> -->
<?php echo '<Object type="UniformMass" totalmass="'.(20*$size).'" />'."\n"; ?>
<!--		<Object type="RegularGrid"
			nx="16" ny="16" nz="6"
			xmin="0" xmax="3"
			ymin="0" ymax="3"
			zmin="0" zmax="1"
		/> -->
<?php echo '<Object type="RegularGrid"
			nx="16" ny="16" nz="'.(5*$size+1).'" xmin="0" xmax="3" ymin="0" ymax="3" zmin="0" zmax="'.$size.'" />'."\n"; ?>
		<Object type="FixedConstraint" indices="0-255" />
		<Object type="TetrahedronFEMForceField" name="FEM" youngModulus="24000" poissonRatio="0.3" method="large" />
	</Node>
</Node>