Hi,
Importing Salome Mesh in .unv format in MOOSE software (exporting .unv from salome and importing by libmesh in MOOSE framework)
http://www.salome-platform.org/
http://mooseframework.com/
http://mooseframework.org/wiki/MooseSystems/Mesh/
https://github.com/idaholab/moose/blob/ ... als/ex08.i
Steps
A. Create Mesh Groups in Salome Mesh Module
Let's consider a cube , so we have :
i. In Mesh Module, after the computation of mesh, apply
ii. Define the names for each faces i.e. the members of resulting Mesh Groups(for boundaries) as:
Code: Select all
Left , Right, Top, Bottom, Front and Back.
iii. Export the Mesh in .unv format i.e. in object browser,
Right Click the Mesh-->> Export -->> .unv
iv. Save the file as "filename.unv"
B. Open the filename.unv, and visit universal dataset number 2467, which are named as Permanent Groups and in simple, mean the Mesh Groups that has been created above.
The group having the above
Left , Right, Top, Bottom, Front and Back can be found there.
C. In the input file of MOOSE software say "moosefile.i" , define the following things in the Mesh section.
Code: Select all
[Mesh]
file=filename.unv
boundary_id='1 2 3 4 5 6'
boundary_name='Left Right Top Bottom Front Back'
[]
This means the boundary name "Left" of filename.unv file has got an identity number 1 for use in MOOSE framework and so on.
D. Now, in the same moosefile.i, we define the following in the BCs section
Code: Select all
[BCs]
active = 'first second'
[./first]
type = DirichletBC
variable = varname
boundary = '1'
value = 5
[../]
[./second]
type = DirichletBC
variable = varname
boundary = '2'
value = 0
[../]
[]
In these BCs, boundary='1' and boundary='2' respectively refer to Left and Right boundary names of the cube in filename.unv.
The steps for installation of MOOSE software in Ubuntu 14.04 at the home directory along with a hint on running an application is given in this
thread.
In context of multibodies the corresponding task is done for blocks name in MOOSE input file in addition to the boundaries names:
Code: Select all
[Mesh]
file = MeshFile.unv
block_id = '1 2'
block_name = 'material_1 material_2'
#material_1 and material_2 are found in MeshFile.unv
# if they are defined by Mesh create groups option
boundary_id = '1 2 3 4'
boundary_name = 'left right top bottom'
#left right top bottom are found written in the MeshFile.unv
## if they are defined by Mesh create groups option
[ ]
and these material names are represented as names in the Materials block such as:
Code: Select all
[Materials]
...
[./FirstMaterials]
...
block = 'material_1'
...
[ ../]
[./SecondMaterials]
...
block = 'material_2'
...
[ ../]
Yours
Anil Kunwar