voxcraft / voxcraft-sim

a GPU-accelerated voxel-based physics engine
Creative Commons Zero v1.0 Universal
43 stars 10 forks source link

Incomplete history files #23

Closed ai-honzik closed 4 years ago

ai-honzik commented 4 years ago

Sometimes, history files seem to be incomplete. This happens mostly on google colab but also on some of our personal computers.

Header seems to be missing and history file starts at 2.3 seconds (for 3s experiment). Most of the files have a similar problem.

If needed, I can post vxa and vxd files that we used.

e.g.

1 GPU found.
=== set device to 0 for 1 simulations ===

Total GPU memory 11996954624 bytes.
Set GPU heap size to be 5998477312 bytes.
<<<Step35334 Time:2.349840>>>70.2,128.4,-0.1,12.1,-0.11,0.00,0.00,-4.9,-4.9,-4.9,4.9,4.9,4.9,2,0.0,;80.1,128.4,-0.1,12.2,-0.11,-0.00,0.00,-4.9,-4.9,-4.9,4.9,4.9,4.9,2,0.0,;70.3,149.9,-0.9,1.1,-0.00,-0.01,0.00,-4.6,-4.6,-4.6,4.7,4.6,4.4,1,0.0,;79.8,149.9,-0.9,1.1,-0.00,0.01,0.00,-4.7,-4.6,-4.6,4.6,4.6,4.4,1,0.0,;70.4,130.4,9.3,11.8,-0.10,0.01,-0.00,-4.7,-4.7,-4.6,4.8,4.8,4.7,3,0.0,;79.9,130.5,9.3,11.9,-0.10,-0.01,0.01,-4.8,-4.7,-4.6,4.7,4.8,4.7,3,0.0,;70.4,139.9,8.0,2.5,-0.02,0.00,0.00,-4.6,-4.8,-4.6,4.7,4.8,4.6,1,0.0,;79.8,140.0,8.0,2.5,-0.02,-0.00,0.00,-4.7,-4.8,-4.6,4.6,4.8,4.6,1,0.0,;70.3,149.5,8.2,3.0,0.03,0.00,0.00,-4.7,-4.8,-4.6,4.8,4.7,4.7,3,0.0,;79.8,149.5,8.2,2.9,0.03,0.00,0.00,-4.8,-4.8,-4.6,4.7,4.7,4.7,3,0.0,;<<<>>>
... (output here is ok)
<<<Step44998 Time:2.992513>>>70.2,128.2,-0.0,13.4,-0.12,0.00,0.00,-5.0,-5.0,-5.0,5.0,5.0,5.0,2,0.0,;80.2,128.3,-0.0,13.4,-0.12,-0.00,0.00,-5.0,-5.0,-5.0,5.0,5.0,5.0,2,0.0,;70.3,149.9,-1.0,0.9,0.00,-0.01,0.00,-4.9,-4.9,-4.9,4.7,4.9,4.4,1,0.0,;79.8,149.9,-1.0,0.9,-0.00,0.01,0.00,-4.7,-4.9,-4.9,4.9,4.9,4.4,1,0.0,;70.2,130.4,9.4,13.2,-0.12,0.00,0.00,-4.9,-4.9,-4.7,4.9,4.9,4.9,3,0.0,;80.1,130.5,9.4,13.2,-0.11,-0.00,0.01,-4.9,-4.9,-4.7,4.9,4.9,4.9,3,0.0,;70.2,139.9,7.8,3.3,-0.03,0.00,0.00,-4.9,-4.8,-4.9,4.9,4.8,4.9,1,0.0,;80.0,140.0,7.8,3.3,-0.03,-0.00,0.00,-4.9,-4.8,-4.9,4.9,4.8,4.9,1,0.0,;70.2,149.6,8.1,4.0,0.03,-0.00,0.00,-4.9,-4.9,-4.7,4.9,4.9,4.9,3,0.0,;79.9,149.6,8.1,3.9,0.03,0.00,0.00,-4.9,-4.9,-4.7,4.9,4.9,4.9,3,0.0,;<<<>>>
0) Simulation 0 ends: turnsRight.vxd Time: 3.000027, angleSampleTimes: 15.
Running simulation locally by default.
./vx3_node_worker -i workspace/locally/20200718092817.vxt -o workspace/locally/20200718092817.vxr
ai-honzik commented 4 years ago

This may be related to cuda's printf function and the buffer size: https://stackoverflow.com/questions/15421626/incomplete-output-from-printf-called-on-device https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#formatted-output

liusida commented 4 years ago

If needed, I can post vxa and vxd files that we used.

Thanks, please. I'll try to reproduce the error and see what's going on.

ai-honzik commented 4 years ago

vxa

<VXA Version="1.1">
  <Simulator>
    <Integration>
      <DtFrac>0.5</DtFrac>
    </Integration>
    <Damping>
      <BondDampingZ>0.1</BondDampingZ>
      <ColDampingZ>1.0</ColDampingZ>
      <SlowDampingZ>1.0</SlowDampingZ>
    </Damping>
    <StopCondition>
      <StopConditionFormula>
        <mtSUB>
          <mtVAR>t</mtVAR>
          <mtCONST>3</mtCONST>
        </mtSUB>
      </StopConditionFormula>
    </StopCondition>
    <RecordHistory>
      <RecordStepSize>100</RecordStepSize>
      <RecordVoxel>1</RecordVoxel>
      <RecordLink>0</RecordLink>
    </RecordHistory>
    <AttachDetach>
      <EnableCollision>1</EnableCollision>
      <SafetyGuard>500</SafetyGuard>
    </AttachDetach>
    <EnableSignals>0</EnableSignals>
    <EnableCilia>0</EnableCilia>
    <SavePositionOfAllVoxels>0</SavePositionOfAllVoxels>
    <MaxDistInVoxelLengthsToCountAsPair>0</MaxDistInVoxelLengthsToCountAsPair>
  </Simulator>
  <Environment>
    <Gravity>
      <GravEnabled>1</GravEnabled>
      <GravAcc>-9.81</GravAcc>
      <FloorEnabled>1</FloorEnabled>
    </Gravity>
    <Thermal>
      <TempEnabled>1</TempEnabled>
      <VaryTempEnabled>1</VaryTempEnabled>
      <TempBase>25</TempBase>
      <TempAmplitude>14.4714</TempAmplitude>
      <TempPeriod>0.2</TempPeriod>
    </Thermal>
  </Environment>
  <VXC Version="0.94">
    <Lattice>
      <Lattice_Dim>0.01</Lattice_Dim>
    </Lattice>
    <Palette>
      <Material ID="1">
        <Name>Material 0</Name>
        <Display>
          <Red>0.14099259409378007</Red>
          <Green>0.08854556775050326</Green>
          <Blue>0.809663997916719</Blue>
          <Alpha>1</Alpha>
        </Display>
        <Mechanical>
          <isTarget>0</isTarget>
          <isMeasured>1</isMeasured>
          <Fixed>0</Fixed>
          <Sticky>0</Sticky>
          <Cilia>False</Cilia>
          <PaceMakerPeriod>0</PaceMakerPeriod>
          <signalValueDecay>0.9</signalValueDecay>
          <signalTimeDelay>0.03</signalTimeDelay>
          <inactivePeriod>0.03</inactivePeriod>
          <MatModel>0</MatModel>
          <Elastic_Mod>106570.82081835589</Elastic_Mod>
          <Fail_Stress>0</Fail_Stress>
          <Density>70271.85283485209</Density>
          <Poissons_Ratio>0</Poissons_Ratio>
          <CTE>0.005021470540585884</CTE>
          <uStatic>0.562913457012264</uStatic>
          <uDynamic>0.13390041150158422</uDynamic>
          <Cilia>0</Cilia>
        </Mechanical>
      </Material>
      <Material ID="2">
        <Name>Material 1</Name>
        <Display>
          <Red>0.08897459328396962</Red>
          <Green>0.3376041933422086</Green>
          <Blue>0.7445836931542802</Blue>
          <Alpha>1</Alpha>
        </Display>
        <Mechanical>
          <isTarget>0</isTarget>
          <isMeasured>1</isMeasured>
          <Fixed>0</Fixed>
          <Sticky>0</Sticky>
          <Cilia>False</Cilia>
          <PaceMakerPeriod>0</PaceMakerPeriod>
          <signalValueDecay>0.9</signalValueDecay>
          <signalTimeDelay>0.03</signalTimeDelay>
          <inactivePeriod>0.03</inactivePeriod>
          <MatModel>0</MatModel>
          <Elastic_Mod>3697522.93419921</Elastic_Mod>
          <Fail_Stress>0</Fail_Stress>
          <Density>25822.4155534153</Density>
          <Poissons_Ratio>0</Poissons_Ratio>
          <CTE>0.0009383215475447271</CTE>
          <uStatic>0.45283506435743615</uStatic>
          <uDynamic>0.11926600140511912</uDynamic>
          <Cilia>0</Cilia>
        </Mechanical>
      </Material>
      <Material ID="3">
        <Name>Material 2</Name>
        <Display>
          <Red>0.4601874929672084</Red>
          <Green>0.5085382660662086</Green>
          <Blue>0.7814182148645693</Blue>
          <Alpha>1</Alpha>
        </Display>
        <Mechanical>
          <isTarget>0</isTarget>
          <isMeasured>1</isMeasured>
          <Fixed>0</Fixed>
          <Sticky>0</Sticky>
          <Cilia>False</Cilia>
          <PaceMakerPeriod>0</PaceMakerPeriod>
          <signalValueDecay>0.9</signalValueDecay>
          <signalTimeDelay>0.03</signalTimeDelay>
          <inactivePeriod>0.03</inactivePeriod>
          <MatModel>0</MatModel>
          <Elastic_Mod>231875.7663659463</Elastic_Mod>
          <Fail_Stress>0</Fail_Stress>
          <Density>43219.452091459534</Density>
          <Poissons_Ratio>0</Poissons_Ratio>
          <CTE>0.0034710450281608706</CTE>
          <uStatic>0.20257894239116914</uStatic>
          <uDynamic>0.3906711979002612</uDynamic>
          <Cilia>0</Cilia>
        </Mechanical>
      </Material>
    </Palette>
  </VXC>
</VXA>

vxd:

<VXD>
  <Structure replace="VXA.VXC.Structure" Compression="ASCII_READABLE">
    <X_Voxels>20</X_Voxels>
    <Y_Voxels>20</Y_Voxels>
    <Z_Voxels>20</Z_Voxels>
    <Data>
      <Layer><![CDATA[0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002200000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000]]></Layer>
      <Layer><![CDATA[0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003300000000000000000011000000000000000000330000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000]]></Layer>
      <Layer><![CDATA[0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000]]></Layer>
      <Layer><![CDATA[0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000]]></Layer>
      <Layer><![CDATA[0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000]]></Layer>
      <Layer><![CDATA[0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000]]></Layer>
      <Layer><![CDATA[0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000]]></Layer>
      <Layer><![CDATA[0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000]]></Layer>
      <Layer><![CDATA[0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000]]></Layer>
      <Layer><![CDATA[0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000]]></Layer>
      <Layer><![CDATA[0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000]]></Layer>
      <Layer><![CDATA[0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000]]></Layer>
      <Layer><![CDATA[0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000]]></Layer>
      <Layer><![CDATA[0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000]]></Layer>
      <Layer><![CDATA[0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000]]></Layer>
      <Layer><![CDATA[0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000]]></Layer>
      <Layer><![CDATA[0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000]]></Layer>
      <Layer><![CDATA[0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000]]></Layer>
      <Layer><![CDATA[0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000]]></Layer>
      <Layer><![CDATA[0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000]]></Layer>
    </Data>
  </Structure>
</VXD>
ai-honzik commented 4 years ago

I think an easy fix would be to increase the buffer size, @skriegman does that in his branch (at least I think it's his). VX3_SimulationManager.cu:144

As I am not familiar with cuda programming, I cannot tell what is exactly wrong. The default buffer size on google colab (free version) is ~1MB afaik (yet it's not enough to create 100kB files?).

skriegman commented 4 years ago

@ai-honzik to start let's simplify your genotype.

<VXA Version="1.1">
  <Simulator>
    <Integration>
      <DtFrac>0.9</DtFrac><!--was 0.5-->
    </Integration>
    <StopCondition>
      <StopConditionFormula>
        <mtSUB>
          <mtVAR>t</mtVAR>
          <mtCONST>3</mtCONST>
        </mtSUB>
      </StopConditionFormula>
    </StopCondition>
    <RecordHistory>
      <RecordStepSize>100</RecordStepSize>
      <RecordVoxel>1</RecordVoxel>
      <RecordLink>0</RecordLink>
    </RecordHistory>
  </Simulator>
  <VXC Version="0.94">
    <Lattice>
      <Lattice_Dim>0.01</Lattice_Dim>
    </Lattice>
    <Palette>
      <Material ID="1">
        <Name>Material 0</Name>
        <Display>
          <Red>0.14099259409378007</Red>
          <Green>0.08854556775050326</Green>
          <Blue>0.809663997916719</Blue>
          <Alpha>1</Alpha>
        </Display>
        <Mechanical>
          <isMeasured>1</isMeasured>
          <Fixed>0</Fixed>
          <Elastic_Mod>106570.82081835589</Elastic_Mod>
          <Density>70271.85283485209</Density>
          <Poissons_Ratio>0</Poissons_Ratio>
          <CTE>0.005021470540585884</CTE>
          <uStatic>0.562913457012264</uStatic>
          <uDynamic>0.13390041150158422</uDynamic>
        </Mechanical>
      </Material>
      <Material ID="2">
        <Name>Material 1</Name>
        <Display>
          <Red>0.08897459328396962</Red>
          <Green>0.3376041933422086</Green>
          <Blue>0.7445836931542802</Blue>
          <Alpha>1</Alpha>
        </Display>
        <Mechanical>
          <isMeasured>1</isMeasured>
          <Elastic_Mod>3697522.93419921</Elastic_Mod>
          <Density>25822.4155534153</Density>
          <Poissons_Ratio>0</Poissons_Ratio>
          <CTE>0.0009383215475447271</CTE>
          <uStatic>0.45283506435743615</uStatic>
          <uDynamic>0.11926600140511912</uDynamic>
        </Mechanical>
      </Material>
      <Material ID="3">
        <Name>Material 2</Name>
        <Display>
          <Red>0.4601874929672084</Red>
          <Green>0.5085382660662086</Green>
          <Blue>0.7814182148645693</Blue>
          <Alpha>1</Alpha>
        </Display>
        <Mechanical>
          <isMeasured>1</isMeasured>
          <Elastic_Mod>231875.7663659463</Elastic_Mod>
          <Density>43219.452091459534</Density>
          <Poissons_Ratio>0</Poissons_Ratio>
          <CTE>0.0034710450281608706</CTE>
          <uStatic>0.20257894239116914</uStatic>
          <uDynamic>0.3906711979002612</uDynamic>
        </Mechanical>
      </Material>
    </Palette>
  </VXC>
</VXA>
skriegman commented 4 years ago

@ai-honzik I'm curious, why did you adjust the damping?

ai-honzik commented 4 years ago

@skriegman we have some default presets, to be honest I thought these are default settings (https://github.com/ai-honzik/sr2020/#simulatorpy) of voxcraft-sim as well (but looking at sim code I guess I was wrong...)

Customized evosorocore - https://github.com/ai-honzik/sr2020/tree/master/evosorocore2

skriegman commented 4 years ago

The time step calculation is usually very good. You likely won't need dtFrac to be so low (i.e. <0.9) if you use the default bond damping.

I would delete the section in your vxa

ai-honzik commented 4 years ago

Actually we get a lot of Divergence errors, so I'll be trying to change DtFrac dynamically

skriegman commented 4 years ago

oh and pacemakers. you're not using them so i am going to remove that from your vxa above too

skriegman commented 4 years ago

you should not be getting any divergence errors!!

skriegman commented 4 years ago

also i like how precise your material colors are :smile: Is that the actual color of your robot?

ai-honzik commented 4 years ago

also i like how precise your material colors are Is that the actual color of your robot?

They are :D but they get assigned randomly so we could distinguish materials

ai-honzik commented 4 years ago

I'll try to rerun vxa with your suggested edits, will let you know in a few minutes

ai-honzik commented 4 years ago

Unfortunately, this did not solve the incomplete output.

ai-honzik commented 4 years ago

@ai-honzik to start let's simplify your genotype.

in the vxa above I've put back the thermal section, we're using it to get some movement

for example, for this simulation, I get divergence error: vxa

<VXA Version="1.1">
  <Simulator>
    <Integration>
      <DtFrac>0.5</DtFrac>
    </Integration>
    <StopCondition>
      <StopConditionFormula>
        <mtSUB>
          <mtVAR>t</mtVAR>
          <mtCONST>3</mtCONST>
        </mtSUB>
      </StopConditionFormula>
    </StopCondition>
    <RecordHistory>
      <RecordStepSize>100</RecordStepSize>
      <RecordVoxel>1</RecordVoxel>
      <RecordLink>0</RecordLink>
    </RecordHistory>
  </Simulator>
  <Environment>
    <Thermal>
      <TempEnabled>1</TempEnabled>
      <VaryTempEnabled>1</VaryTempEnabled>
      <TempBase>25</TempBase>
      <TempAmplitude>14.4714</TempAmplitude>
      <TempPeriod>0.2</TempPeriod>
    </Thermal>
  </Environment>
  <VXC Version="0.94">
    <Lattice>
      <Lattice_Dim>0.01</Lattice_Dim>
    </Lattice>
    <Palette>
      <Material ID="1">
        <Name>Material 0</Name>
        <Display>
          <Red>0.9216396909361838</Red>
          <Green>0.20588867626862484</Green>
          <Blue>0.6966622628078402</Blue>
          <Alpha>1</Alpha>
        </Display>
        <Mechanical>
          <isMeasured>1</isMeasured>
          <Fixed>0</Fixed>
          <Elastic_Mod>946491.1360389724</Elastic_Mod>
          <Density>551.4193492855047</Density>
          <Poissons_Ratio>0</Poissons_Ratio>
          <CTE>0.095190450766868</CTE>
          <uStatic>0.1310028377739153</uStatic>
          <uDynamic>0.48415081021552575</uDynamic>
        </Mechanical>
      </Material>
      <Material ID="2">
        <Name>Material 1</Name>
        <Display>
          <Red>0.1613149961373923</Red>
          <Green>0.4597767534821319</Green>
          <Blue>0.635056433951152</Blue>
          <Alpha>1</Alpha>
        </Display>
        <Mechanical>
          <isMeasured>1</isMeasured>
          <Fixed>0</Fixed>
          <Elastic_Mod>9888786.548511231</Elastic_Mod>
          <Density>1288.784230393132</Density>
          <Poissons_Ratio>0</Poissons_Ratio>
          <CTE>0.0</CTE>
          <uStatic>1.7313914907732975</uStatic>
          <uDynamic>0.3596411213451568</uDynamic>
        </Mechanical>
      </Material>
      <Material ID="3">
        <Name>Material 2</Name>
        <Display>
          <Red>0.19957262653633367</Red>
          <Green>0.4168893993758842</Green>
          <Blue>0.4909096235059206</Blue>
          <Alpha>1</Alpha>
        </Display>
        <Mechanical>
          <isMeasured>1</isMeasured>
          <Fixed>0</Fixed>
          <Elastic_Mod>247681.03781932694</Elastic_Mod>
          <Density>858.9800212477304</Density>
          <Poissons_Ratio>0</Poissons_Ratio>
          <CTE>-0.032648689989633654</CTE>
          <uStatic>4.584110554187696</uStatic>
          <uDynamic>0.3615878995260655</uDynamic>
        </Mechanical>
      </Material>
    </Palette>
  </VXC>
</VXA>

vxd

<VXD>
  <Structure replace="VXA.VXC.Structure" Compression="ASCII_READABLE">
    <X_Voxels>5</X_Voxels>
    <Y_Voxels>1</Y_Voxels>
    <Z_Voxels>1</Z_Voxels>
    <Data>
      <Layer><![CDATA[11123]]></Layer>
    </Data>
  </Structure>
</VXD>

Edit: I've got rid of some material properties, still getting divergence error.

skriegman commented 4 years ago

@ai-honzik please try debugging a bit. For example, do you have the same problem with lower elastic mod?

ai-honzik commented 4 years ago

@skriegman

With lower elastic mod I'm still getting divergence error, the behavior gets pretty weird once the values are under 1e5 (almost as if the ground did not exist). Increasing density had the largest impact, looks like that's what's making the simulation diverge so often.

For the history file output - is there a problem on our side?

skriegman commented 4 years ago

@ai-honzik so there is a range of densities that are stable (and the history file is recorded) but another range of density values in which your simulation is not stable (and the history file is fine)?

ai-honzik commented 4 years ago

@skriegman will take a look whether it has any impact on history files on colab (haven't checked that, was just checking for divergence errors).

And yes, for some densities the simulation seems to be exploding even with pretty low DtFrac.

skriegman commented 4 years ago

Got it. It seems that I have polluted / complicated this thread. So: let's open up 2 new separate issues. The first for exploding sim at various parameter values. And a second issue (if it exists) of a stable sim leading to an invalid history file. For each, include the smallest example that demonstrates the issue. It is easier for us to debug 10 voxels than 10000 voxels, and more generally smaller vxd files. Thanks.