Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ElmerCSC
GitHub Repository: ElmerCSC/elmerfem
Path: blob/devel/elmerice/examples/Test_MshGlacierDEM/Partitioned/README.txt
3206 views
1
% create teterousse.msh using gmsh
2
gmsh teterousse.geo -1 -2
3
4
% convert teterousse.gmsh in an Elmer type mesh
5
ElmerGrid 14 2 teterousse.msh -autoclean
6
7
% Make a Partitioned mesh of teterousse with 6 partitions
8
ElmerGrid 2 2 teterousse -halo -metis 6 4
9
10
% Extrude vertically the mesh (1m thick)
11
% Get ExtrudeMesh from the svn
12
% and compile it (cc ExtrudeMesh.c -o ExtrudeMesh -lm)
13
ExtrudeMesh teterousse WithOutCavity 14 1 6 0 0 0 0
14
15
% Deform vertically using the surface and bedrock DEM
16
% Input data are in mesh_input.dat
17
% Extension of the library depends on system you are working on
18
# .so pour unix
19
----------------
20
elmerf90-nosh {path_to_elmerice}/Meshers/MshGlacierDEM.f90 $ELMER_HOME/lib/libelmersolver.so -o MshGlacierDEM
21
22
# .dylib pour Mac
23
-----------------
24
elmerf90-nosh {path_to_elmerice}/Meshers/MshGlacierDEM.f90 $ELMER_HOME/lib/libelmersolver.dylib -o MshGlacierDEM
25
26
./MshGlacierDEM
27
28
% Make a .ep to visualize in ElmerPost the mesh
29
ElmerGrid 2 3 WithOutCavity
30
31