Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ElmerCSC
GitHub Repository: ElmerCSC/elmerfem
Path: blob/devel/elmerice/examples/Test_MshGlacierDEM/Serial/README.txt
5289 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
% Extrude vertically the mesh (1m thick)
8
% Get ExtrudeMesh from the svn
9
% and compile it (cc ExtrudeMesh.c -o ExtrudeMesh -lm)
10
ExtrudeMesh teterousse WithOutCavity 14 1 1 0 0 0 0
11
12
% Deform vertically using the surface and bedrock DEM
13
% Input data are in mesh_input.dat
14
% Extension of the library depends on system you are working on
15
# .so pour unix
16
----------------
17
elmerf90-nosh {path_to_elmerice}/Meshers/MshGlacierDEM.f90 $ELMER_HOME/lib/libelmersolver.so -o MshGlacierDEM
18
19
# .dylib pour Mac
20
-----------------
21
elmerf90-nosh {path_to_elmerice}/Meshers/MshGlacierDEM.f90 $ELMER_HOME/lib/libelmersolver.dylib -o MshGlacierDEM
22
23
./MshGlacierDEM
24
25
% Make a .ep to visualize in ElmerPost the mesh
26
ElmerGrid 2 3 WithOutCavity
27
28