Metafor

ULiege - Aerospace & Mechanical Engineering

User Tools

Site Tools


doc:user:remeshing:remeshing

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
doc:user:remeshing:remeshing [2016/06/13 17:11] – [CopyRemesher] jorisdoc:user:remeshing:remeshing [2016/06/13 17:33] – [Options] joris
Line 258: Line 258:
                          
         autoRemesh.setBalancing(True)         autoRemesh.setBalancing(True)
-            +     
 +        autoRemesh.makeAnim = False 
 +    
         autoRemesh.execute()         autoRemesh.execute()
                  
Line 272: Line 274:
   * ''setInteractionToPostStep'' gives to FENRIR the user number of the interaction on which post-remeshing operations should be executed (typically, any contact interaction), here number 1.   * ''setInteractionToPostStep'' gives to FENRIR the user number of the interaction on which post-remeshing operations should be executed (typically, any contact interaction), here number 1.
      
-  * Finally, the line ''autoRemesh.setBalancing(True)'' is the magical ingredient that makes everything taste better... I will talk more about this in a [[#Balancing|following section]].+  * The line ''autoRemesh.setBalancing(True)'' is the magical ingredient that makes everything taste better... I will talk more about this in a [[#Balancing|following section]]
 + 
 +  * Finally, the line ''autoRemesh.makeAnim = False'' indicates that we have no wish to make a save a picture every time that a fac is saved (to make an anim later on). If set to ''True'', then after each time integration, all facs will be loaded and a screenshot will be saved as a .bmp in the folder Anim, located in the workspace, just as is traditionally done when clicking on the button ''makeAnimation'' in Metafor GUI.
  
 Now that you have altered your test case to include remeshing, and that you have defined this little script, all that remains is to launch Metafor and execute your script (execute, not load/meta). Everything should work out perfectly. Now that you have altered your test case to include remeshing, and that you have defined this little script, all that remains is to launch Metafor and execute your script (execute, not load/meta). Everything should work out perfectly.
Line 464: Line 468:
   cell.addOption(INTPT_NB, 5)   cell.addOption(INTPT_NB, 5)
    
-To understand all these options, please look at [[doc:user:meshtransfer:datatransferbetweenmeshes|Philippe's doc]]+To understand all these options, please look at [[doc:user:meshtransfer:datatransferbetweenmeshes|Philippe's doc]].
  
 ====  Changing the fields to transfer ==== ====  Changing the fields to transfer ====
Line 543: Line 547:
  
 Since we conserve the inertial forces and correct the internal ones, this post-remeshing algorithm works quite well for quasi-static and low speed dynamic computations. For high speed dynamic computations, it is best not to use it and simply let the simulation continue. Since we conserve the inertial forces and correct the internal ones, this post-remeshing algorithm works quite well for quasi-static and low speed dynamic computations. For high speed dynamic computations, it is best not to use it and simply let the simulation continue.
 +
 +==== Options ====
 +
 +The complete ''setBalancing'' command is actually
 +
 +  setBalancing(executeBalancing, velocitiesExtrapolation=True, maxItes=7, balancingTolerance=0.001)
 +  
 +The first argument has already been described and indicates whether balancing should be done or not. 
 +
 +For the advanced user, a few options can be played with by changing the three of arguments. 
 +
 +First of all, it is possible to deactivate the ''stepPredictor()''. If you do not know what it is, do not touch it. If you do, well sometimes, when transfer errors are significant, the balancing can go better if executed without this predictor, so without extrapolating the next step based on velocities and accelerations. This is fine only in quasi-static, because in dynamic computations velocities and accelerations also intervene in the computation of forces. To do so, simply set the second argument to ''False''. If have not investigated this greatly, but I believe that this could be a sign that the mesh of the computation was not fine enough, so activating this option could hide the real problem. I believe it should be reserved for battery tests, because we want to have tests with rather coarse meshes there. 
 +
 +Second, the number of iterations for each step of the balancing can be changed. By default, seven iterations are tried before increasing the fraction of the unbalanced forces and starting again.
 +
 +Finally, the tolerance can also be changed. The parameter $\alpha$, used to ponder the unbalanced forces, starts at 1 and is progressively divided by 2 when a step fails. Once $\alpha$ becomes smaller than the tolerance, the algo stops itself, returns an error, and the temporal integrationdoes not restart. The default value of 0.001 can be changed if needed. 
doc/user/remeshing/remeshing.txt · Last modified: 2024/03/01 16:17 by boman

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki