Replace Geometry from Command Line Example

The Replace Geometry command requires a configuration file.

This configuration file contains the relevant information for each geometry which is being replaced. The format of this is outlined in the example as shown:

For each section to be replaced, include a line formatted as follows, where the delimeter is the 'hash' character:

<cfg file section> # <target section name> # <CAD file> # <import units> # <Geometry material> # <mesh (y/n)> # <Min Size/Element Size> # <Max Size> # <Max Deviation> # <Max Angle>

If the meshing option "n" is used the default mesh import options will be used. If "y" is used the number of arguments after the "y" will determine the approach used.  A single value with use the Size and Bias approach, four values will use the rigid body approach. See example below for more details.

The cfg file section is a unique identifier for each object-this can be assigned any value provided that it is unique to any other cfg file section used in the file.

Example

Section1 # guide 1 # D:\Wall21.stl # m # steel # n Geometry will be imported using default mesh options

Section2 # guide 2 # D:\Wall22.stl # mm # steel # y # 10 Geometry will be imported using size and bias approach and Element size 10mm

Section3 # guide 3 # D:\Wall23.stl # mm # steel # y # 10 # 100 # 1 # 15 Geometry will be imported using Rigid Body approach and the four parameters shown

Then reference the config file from the command line:

edem.exe --console -i td.dem --rg rgconfig.txt -R

 

(c) 2023 Altair Engineering Inc. All Rights Reserved.

Intellectual Property Rights Notice | Technical Support