Re: [Yade-users] [Question #703839]: appendClumped
Question #703839 on Yade changed: https://answers.launchpad.net/yade/+question/703839 Status: Open => Answered Jan Stránský proposed the following answer: Hello, please provide a MWE [1], i.e.: - content of Clumped.txt (following M=minimal, on e or a few clumps) - maybe also a MWE how you created the Clumped.txt file > What ... source code is always a good reference [2] > What is the correct format to use appendClumped and ymport.textClumps? for the start, use brackets correctly: spheres=O.bodies.appendClumped(ymport.textClumps(inputfile,material=material,discretization=0)) It not a bad idea to use multiple lines instead of oneliners: spheres = ymport.textClumps(inputfile,material=material,discretization=0) sphereIDs = O.bodies.appendClumped(spheres) here you can see a misconception you load clumps, and then appendClumped them.. Normally you use appendClumped for standalone (not yet clumped) particles... > What discretization means?? [3] :-) here it is argument passed to O.bodies.appendClumped [4] > In yade document it tells ymport.textsClumps have default x_y_z_r format..how to change that?? this is error in documentation, format keyword is not present. You can check in Yade console: help(ymport.textClumps) or in online documentation, "format" is not present as a parameter. > In yade document it tells more importantly for your case, it tells that it "Load clumps-members ... insert them to the simulation" So they are loaded and inserted in the simulation, you do not O.bodies.append the ymport.textClumps result (!) Cheers Jan [1] https://www.yade-dem.org/wiki/Howtoask [2] https://gitlab.com/yade-dev/trunk/-/blob/master/py/ymport.py#L116 [3] https://www.dictionary.com/browse/discretization [4] https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.BodyContainer.appendClumped [5] https://yade-dem.org/doc/yade.ymport.html#yade.ymport.textClumps -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #703836]: How desiredPorosity works?
Question #703836 on Yade changed: https://answers.launchpad.net/yade/+question/703836 Status: Open => Answered Robert Caulk proposed the following answer: Hello, By default, `FlowEngine` computes the volume of water in a cell to be equivalent to the full tetrahedron less the sphere fractions. `desiredPorosity` allows the user to reduce the total volume of water in the specimen by multiplying the default cell volumes by a volumeCorrection factor: volumeCorrection = desiredPorosity/actualPorosity cell_volume = volume * volumeCorrection This has an effect on compressible fluid simulations and heat diffusion. It does not change the structural sphere packing. Cheers, Robert -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
[Yade-users] [Question #703839]: appendClumped
New question #703839 on Yade: https://answers.launchpad.net/yade/+question/703839 I was trying to run a code for which i already have an inputfile generated fro another code in the x_y_z_r_clumpid format. For the following part of my code i am getting error. What is the correct format to use appendClumped and ymport.textClumps? What discretization means?? In yade document it tells ymport.textsClumps have default x_y_z_r format..how to change that?? # - Adding Spheres to the Simulation - inputfile = 'Clumped.txt' spheres=O.bodies.appendClumped(ymport.textClumps(inputfile),material=material,discretization=0) # Adding spheres to the simulation Traceback (most recent call last): File "/usr/bin/yade", line 336, in runScript execfile(script,globals()) File "/usr/lib/python3/dist-packages/past/builtins/misc.py", line 87, in execfile exec_(code, myglobals, mylocals) File "2_Edited_Clump.py", line 70, in spheres=O.bodies.appendClumped(ymport.textClumps(input_file),material=concreteId,discretization=0,format='x_y_z_r_clumpId') # Adding spheres to the simulation Boost.Python.ArgumentError: Python argument types in BodyContainer.appendClumped(BodyContainer, list) did not match C++ signature: appendClumped(yade::pyBodyContainer {lvalue}, std::vector, std::allocator > >, unsigned int discretization=0) -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
[Yade-users] [Question #703836]: How desiredPorosity works?
New question #703836 on Yade: https://answers.launchpad.net/yade/+question/703836 Hello, So how dose desiredPorosity in the flow engine work? The description only says "Correct the cell volumes to reflect this desired porosity". Does that means even if I pack the particles loosely, I can just change the desiredPorosity into a low value and get a tight rock? It would be great if there is some sort of paper you can direct me to look up. Thanks. Best Jiannan -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp