Mass Null when loading off file

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Mass Null when loading off file

Clément
Hello !
I still have an issue :)
When i load the tool, during the processing there is an error, the mass is null.
Isn't the density of the tool be set by default ?
How can i just apply a load on my tool please ?

Best Regards,
Clément D.




Here is the whole inp:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<GranOO Version="2.0" TotIteration="10000" OutDir="Results" ThreadNumber="3">

  <PreProcessing>
    <PlugIn Id="_ReadDomain" FileName="CompactDomain.agdd"/>
    <PlugIn Id="_ComputeOptimalTimeStep" Ratio="0.14" />
    <PlugIn Id="_NewTool" Type="Polyhedron" Scale="0.002"  File="./chenilleplatev2.off"  ID="chenille"/>



  </PreProcessing>
   
  <Processing>
   
    <PlugIn Id="_ClearLoad"/>
    <PlugIn Id="_ApplyGravity" X="0." Y="-9.81" Z="0." Set="Global"/>
   
   
   
   
   
   
    <PlugIn Id="_ManageCollision" Between="DiscreteElement/DiscreteElement"
       BroadPhase="LCM" Set="Global"
       CallBack="Standard" Stiffness="1e5" RestitutionCoeff="0.1"
            RegularizationType="piecewise" DryFrictionSlope="1e5"
            StaticDryFrictionCoeff="0.3" DynamicDryFrictionCoeff="0.2"/>

   
    <PlugIn Id="_ManageCollision" Between="DiscreteElement/SupportShape"
       BroadPhase="SupportShape"  SupportShapeID="Boundary" Set="Global"
       CallBack="Standard" Stiffness="1e5" RestitutionCoeff="0.1" /> 
     
   
    <PlugIn Id="_Check" />
    <PlugIn Id="_IntegrateAcceleration" Linear="Yes" Angular="No"/>
    <PlugIn Id="_SaveDomain" IterLoop="1000" Type="lgdd"/>
  </Processing>
 
  <PostProcessing>
  </PostProcessing>
 
</GranOO>
Reply | Threaded
Open this post in threaded view
|

Re: Mass Null when loading off file

Damien André
Administrator
Hello Clément, yes, the density is null while creating a new tool. To overcome this issue, you can add the plugin '_SetDensity' as :
   <PreProcessing>
    <PlugIn Id="_NewTool" Type="Polyhedron" Scale="0.002"  File="./chenilleplatev2.off"  ID="chenille"/>
    <PlugIn Id="_SetDensity" Density="7000."/>
    <PlugIn Id="_ReadDomain" FileName="CompactDomain.agdd"/>
    <PlugIn Id="_ComputeOptimalTimeStep" Ratio="0.14" />
  </PreProcessing>
Here, the density of your tool is set to 7000 kg/m^3. Now, if you want to apply a load on your tool, simply add the 'Set' option to your '_NewTool' plugin :
<PreProcessing>
  ...
  <PlugIn Id="_NewTool" Type="Polyhedron" Scale="0.002"  File="./chenilleplatev2.off"  ID="chenille" Set="Chenille"/>
  ...
</PreProcessing>
And now, you can apply a load with the '_ApplyForce' plugIn on your tool by specifying the SetID as :
<Processing>
  ...
  <PlugIn Id="_ApplyForce" X="100." Y="-1.*sin(it)" Z="0." Set="Chenille"/>
 ...
<Processing/>

Hop this help, Damien
Reply | Threaded
Open this post in threaded view
|

Re: Mass Null when loading off file

Clément
Hello Damien !
Thanks for your replies !
It still doesn't work :(
I also tried to specify Set ="Chenille" in the _SetDensity plugin.

Do you have an other idea ?
Here is the Preprocessing :

  <PreProcessing>
   
    <PlugIn Id="_NewTool" Type="Polyhedron" Scale="0.002"  File="./chenilleplatev2.off"  ID="chenille" Set="Chenille"/>
    <PlugIn Id="_SetDensity" Density="7000."/>
    <PlugIn Id="_ReadDomain" FileName="CompactDomain.agdd"/>
    <PlugIn Id="_ComputeOptimalTimeStep" Ratio="0.14" />
  </PreProcessing>

And here is the error message :

[PROCESSING it=0][PlugIn _IntegrateAcceleration...]
[ERROR]
####################################################
# An error was encountered ! The program must stop #
####################################################
You have to fix this problem, you may browse the source files to get more informations...
line      : 221
in file   : /home/name/granoo/tags/2.0/Lib/GranOO/libPlugIn/IntegrateAcceleration.cpp
condition : 'M > 0.'
Reply | Threaded
Open this post in threaded view
|

Re: Mass Null when loading off file

Damien André
Administrator
Hello, Sorry, I have no solution. I suppose that the geometry defined in "./chenilleplatev2.off" is not right. Try with another geometry.

Damien.
Reply | Threaded
Open this post in threaded view
|

Re: Mass Null when loading off file

Damien André
Administrator
Hello, can you share un zip file containing all the files (.off, .inp, .agg, .gdd) needed to run your simulation ? I will take a quick look... Damien.
Reply | Threaded
Open this post in threaded view
|

Re: Mass Null when loading off file

Clément
Thank you so much !
Here is the .zip you need to launch the simulation,

GranooFilesNeeded.zip
Thanks a lot !

Cheers Clément
Reply | Threaded
Open this post in threaded view
|

Re: Mass Null when loading off file

Clément
In reply to this post by Damien André
You were right !
I had an issue with the .off file and finally it worked,
thank you soooooo much !
Reply | Threaded
Open this post in threaded view
|

Re: Mass Null when loading off file

Damien André
Administrator
Good ^^'