CAD file import for geometry

Submitted by mojtaba on Wed, 09/20/2017 - 05:18

Hi Friends,

I am going to run the model via HPC on which the liggghts software is installed but I do not have access to mesh file to upload the cad files there. Please let me know where I can put my file to call for cad files.
I am facing this error:
LIGGGHTS (Version LIGGGHTS-PUBLIC 3.7.0, compiled 2017-09-05-08:40:32 by root, git commit c449f30b63c5eec5c8053a67dccd892fe2c5cef2)
Created orthogonal box = (-0.05 -0.05 -0.5) to (0.05 0.05 0.05)
1 by 1 by 1 MPI processor grid
Fix particledistribution/discrete (id pdd1): distribution based on mass%:
pts1: d=4.000000e-03 (max. bounding sphere) mass%=100.000000%
Fix particledistribution/discrete (id pdd1): distribution based on number%:
pts1: d=4.000000e-03 (max. bounding sphere) number%=100.000000%
ERROR on proc 0: Cannot open mesh file project/RDS-FEI-GESS-RW/Mojtaba/compression/mesh/outer.stl (../input_mesh_tri.cpp:105)
This is my scripts:
### Initialization

atom_style sphere
atom_modify map array
boundary f f f
newton off
communicate single vel yes
units si

region reg block -0.05 0.05 -0.05 0.05 -0.5 0.05 units box
create_box 2 reg

neighbor 0.002 bin
neigh_modify delay 0

### Setup

#Material properties required for new pair styles
fix m1 all property/global youngsModulus peratomtype 3e8 2.1e11
fix m2 all property/global poissonsRatio peratomtype 0.45 0.3
fix m3 all property/global coefficientRestitution peratomtypepair 1 0.9
fix m4 all property/global coefficientFriction peratomtypepair 1 0.05

#New pair style
pair_style gran model hertz tangential history
pair_coeff * *

#particle distributions
fix pts1 all particletemplate/sphere 15485863 atom_type 1 density constant 1750 radius constant 0.002
fix pdd1 all particledistribution/discrete 15485867 1 pts1 1.0

#import mesh from cad:
fix cad1 all mesh/surface file project/RDS-FEI-GESS-RW/Mojtaba/compression/mesh/outer.stl type 2 scale 1e-3
fix cad2 all mesh/surface file project/RDS-FEI-GESS-RW/Mojtaba/compression/mesh/bottom.stl type 2 scale 1e-3
fix cad3 all mesh/surface file project/RDS-FEI-GESS-RW/Mojtaba/compression/mesh/target.stl type 2 scale 1e-3 move 0. 0. 0.05

# Use the imported sonotrode as granular wall
fix geometry all wall/gran model hertz tangential history mesh n_meshes 3 meshes cad1 cad2 cad3

fix ts all check/timestep/gran 1000 0.1 0.1

### Detailed settings

#apply nve integration to all particles
fix integr all nve/sphere
timestep 1.5e-7
fix gravi all gravity 9.81 vector 0.0 0.0 -1.0

#output settings, include total thermal energy
compute rke all erotate/sphere
compute 3 all msd
thermo_style custom step atoms ke c_rke vol
thermo 10000
thermo_modify lost ignore norm no
#compute 1 all wall/gran/local pos vel id contactArea

### Execution and further settings

#region of insertion
region bc cylinder z 0. 0. 0.025 0.01 0.05 units box
#insertion particles
fix ins all insert/pack seed 32452843 distributiontemplate pdd1 vel constant 0. 0. 0. &
insert_every once overlapcheck yes all_in yes particles_in_region 7800 region bc

#move target plate
fix movecad3 all move/mesh mesh cad3 linear 0. 0. -1e-5

#set the dumps
dump dmp all custom 5000 post1/try_*.liggghts id type x y z vx vy vz fx fy fz radius
dump dmpst1 all mesh/stl 5000 post1/outer*.stl cad1
dump dmpst2 all mesh/stl 5000 post1/bottom*.stl cad2
dump dmpst3 all mesh/stl 5000 post1/target*.stl cad3
#dump dmpwg all local 15 post/wallgran*.txt c_1[1] c_1[2] c_1[10] c_1[11] c_1[12] c_1[13] c_1[15]

run 1000000 upto

FelipeL | Mon, 09/25/2017 - 20:10

Just copy the .stl file into the folder where the input script was created.

i suggest to change the following line:
fix cad1 all mesh/surface file project/RDS-FEI-GESS-RW/Mojtaba/compression/mesh/outer.stl type 2 scale 1e-3
for
fix cad1 all mesh/surface file outer.stl type 2 scale 1e-3

or you can add a new folder called stl and put all the geometries inside and then change the line in a way like this:

fix cad1 all mesh/surface file stl/outer.stl type 2 scale 1e-3

i dont know if that is what are you looking for.