Dear MOOSE users,
*In short*: does anybody know how to set a 2D mesh from Gmsh with
boundary conditions as an input in MOOSE? An attempt of MWE is shown
below.
I am following the tutorial on tensor mechanics
([
http://mooseframework.org/wiki/PhysicsModules/TensorMechanics/BasicTutorial/]).
In
there, an ExodusII mesh is provided
([
https://github.com/idaholab/moose/blob/devel/modules/tensor_mechanics/tutorials/basics/necking_quad4.e]).
I
am trying to reproduce the problem using a mesh generated with Gmsh
(attached files)
tens_mech_tut.geo: Gmsh definition of the geometry and mesh with
specification of physical groups (for the boundaries)
tens_mech_tut.msh: exported mesh generated from the previous file, in
this way
┌────
│ dims=2
│ inFname="tens_mech_tut.geo"
│ outFname="tens_mech_tut.msh"
│ gmsh -optimize_ho -format msh -"$dims" -o
"$outFname" "$inFname" 1>/dev/null
└────
According to Gmsh, setting `-2' as an argument *requests a 2D mesh*.
When I run
┌────
│ moose_input='part_1.1.i'
│ moose_indir='/home/edgar/projects/moose/modules/tensor_mechanics/tutorials/basics'
│ exec_bin='tensor_mechanics-opt'
│ exec_dir='/home/edgar/projects/moose/modules/tensor_mechanics'
│ cd $moose_indir
│ "$exec_dir"/"$exec_bin" -i "$moose_indir"/"$moose_input"
└────
I get
┌────
│ *** ERROR ***
│ The number of variables supplied in 'displacements' must match the
mesh dimension.
└────
which makes me think that the mesh is not recognised as 2D. I can see
that the coordinates of the points are in 3D (all values of the third
dimension are 0).
Does anybody know how to do this (without creating a 3D mesh)?