Installation of Salome 7.4.0. in Linux
Installation of Salome 7.4.0. in Linux
Hi,
The guidelines of installation of salome 7.4.0 is given in the following post:
http://www.salome-platform.org/forum/fo ... 83894/view
Yours
Anil Kunwar
The guidelines of installation of salome 7.4.0 is given in the following post:
http://www.salome-platform.org/forum/fo ... 83894/view
Yours
Anil Kunwar
Anil Kunwar
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
Re: Installation of Salome 7.4.0. in Linux
Hi,
After Installation of Salome 7.4.0, the following posts can be referred for starting to learn about drawing 2D rectangle (50*5) in salome and 3D box(l=200) in salome, and then performing the sample simulation. These posts have the corresponding solver input files and mesh files attached in them.
1. Amidst the posts in the above links, there are provided the brief description for steps of drawing geometry and mesh in Salome 7.4.0 compatible for export to Elmer.
2. Some Basic Commands in Elmer (Salome to Elmer)
Anil Kunwar
After Installation of Salome 7.4.0, the following posts can be referred for starting to learn about drawing 2D rectangle (50*5) in salome and 3D box(l=200) in salome, and then performing the sample simulation. These posts have the corresponding solver input files and mesh files attached in them.
- 1. Geometry Module
i. New Entity>>Basic>>Vector
Dx=100, Dy=100,Dz=100
ii.New Entity>>Basic>>2D Sketch
Values
x=0,y=0 Apply
x=50,y=0 Apply
x=50,y=5 Apply
x=0,y=5 Apply
x=0,y=0 Apply and Close
iii. New Entity>>Build>>Face (Objects = Sketch_n)
iv. New Entity>>Explode (Face as main object, edge as subshapes)
v. Rename by right clicking the edges at object browser for convenience
2. Mesh Module
i. Mesh>>Create Mesh (selection geometry = face, do necessary selections and apply + close)
ii.Mesh >>Compute
iii.Mesh >>Create Group
-Mesh (=select mesh from object browser)
-select edge
-Group on geometry
-Direct Geometry selection
-select the previously exploded edges of face from object browser and apply+close.
iv. Right click near Mesh at object browser and select export.
v. Export>>unv
- 1. Geometry Module
i. New Entity>>Basic>>Vector
Dx=10, Dy=10,Dz=10
ii.New Entity>>Primitive>>Box
Dimensions at origin
Dx=200, Dy=200,Dz=200
Apply and Close
iii. New Entity>>Explode (Box_1 as main object, Face as subshapes)
(If there are intersecting faces for complex 3D geometries, Operation>>Partition should be done at the faces and create >>geometry group should be done here at geometry module to provide sub-meshing option in Mesh module)
v. Rename by right clicking the edges at object browser for convenience
vi. Save the file as .hdf file
2. Mesh Module
i. Mesh>>Create Mesh (selection geometry = Box_1, do necessary selections and apply + close)
(e.g. Tetrahedral meshing 3D, Tetrahedral Netgen in 2D-1D, Netgen 1-D)
ii.Mesh >>Compute
iii.Mesh >>Create Group
-Mesh (=select mesh from object browser)
-select face
-Group on geometry
-Direct Geometry selection
-select the previously exploded faces of box from object browser and apply+close.
iv. Right click near Mesh at object browser and select export
v. Export file in .unv format
1. Amidst the posts in the above links, there are provided the brief description for steps of drawing geometry and mesh in Salome 7.4.0 compatible for export to Elmer.
2. Some Basic Commands in Elmer (Salome to Elmer)
- i. Conversion of .unv file to ElmerSolver format
ii. Elmer Solver run command
Code: Select all
$ElmerGrid 8 2 meshfilename.unv -autoclean
Code: Select all
$ElmerSolver filename.sif
or(if filename.sif is provided in the ELMERSOLVER_STARTINFO file)Code: Select all
$ElmerSolver > filenameforsolverlog.log 2>&1
Anil Kunwar
Anil Kunwar
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
Re: Installation of Salome 7.4.0. in Linux
Creating Multiple Bodies(2D) in Salome 7.4.0
1. Geometry Module
a. Draw rectangle_1 (using sketch 2d)
b. Draw rectangle_2 above it (with one side common to the previously drawn rectangle)
c. Build >>>>Face 1 (corresponding to rectangle 1)
d. Build >>>>Face 2 (corresponding to rectangle 2)
e. Operations >>>>Partition
Name=Partition_1
Objects = Face_1,Face_2 (2 Objects)
Tool Object =...............(Leaving it Empty as it is)
Resulting Type = Face
Apply
Close
f. New Entity >>>> Group>>>>Create Group
Name = Group 1
Main Object = Partition_1
Select all [This will show 2 numbers each of them corresponding to the faces (face1 and face 2)]
Click to the number representing face 2 and press remove.
Apply
Again,
Name = Group_2
Select all
Click to the number representing face 1 and press remove.
Apply and close.
g. New Entity>>>Explode
Main Object = Partition_1
Sub-shapes Type= Edge
Apply and close
(We can rename the names of the edges by right-clicking at their names in the object browser)
h. Save
2. Mesh Module
a. Mesh >>>Create Mesh
Geometry =Partition_1
...(Choose the desired mesh type)
Apply and close
Mesh>>>Compute
Close
b. Mesh >>>Create Group
Mesh=Mesh_1
Elements Type = Face
Name = .....(will be named after the completion of selection)
Group Type =Group on Geometry
Geometrical Object = Direct Geometry Selection
(Click at the partition_1 at the object browser and select Group_1)
Apply
Again select the Group_2 at the object browser
Apply and close
c.Mesh >>>Create Group
Mesh=Mesh_1
Elements Type = Edge
Name = ....(will be named after the completion of selection)
Group Type =Group on Geometry
Geometrical Object = Direct Geometry Selection
(Click at the partition_1 at the object browser and select groups of edges)
Apply
Again select another edge at the object browser
Apply
...
...
Apply and close
d. Right Click at Mesh_1 at object browser
e. Export >>>>UNV file
Yours
Anil Kunwar
1. Geometry Module
a. Draw rectangle_1 (using sketch 2d)
b. Draw rectangle_2 above it (with one side common to the previously drawn rectangle)
c. Build >>>>Face 1 (corresponding to rectangle 1)
d. Build >>>>Face 2 (corresponding to rectangle 2)
e. Operations >>>>Partition
Name=Partition_1
Objects = Face_1,Face_2 (2 Objects)
Tool Object =...............(Leaving it Empty as it is)
Resulting Type = Face
Apply
Close
f. New Entity >>>> Group>>>>Create Group
Name = Group 1
Main Object = Partition_1
Select all [This will show 2 numbers each of them corresponding to the faces (face1 and face 2)]
Click to the number representing face 2 and press remove.
Apply
Again,
Name = Group_2
Select all
Click to the number representing face 1 and press remove.
Apply and close.
g. New Entity>>>Explode
Main Object = Partition_1
Sub-shapes Type= Edge
Apply and close
(We can rename the names of the edges by right-clicking at their names in the object browser)
h. Save
2. Mesh Module
a. Mesh >>>Create Mesh
Geometry =Partition_1
...(Choose the desired mesh type)
Apply and close
Mesh>>>Compute
Close
b. Mesh >>>Create Group
Mesh=Mesh_1
Elements Type = Face
Name = .....(will be named after the completion of selection)
Group Type =Group on Geometry
Geometrical Object = Direct Geometry Selection
(Click at the partition_1 at the object browser and select Group_1)
Apply
Again select the Group_2 at the object browser
Apply and close
c.Mesh >>>Create Group
Mesh=Mesh_1
Elements Type = Edge
Name = ....(will be named after the completion of selection)
Group Type =Group on Geometry
Geometrical Object = Direct Geometry Selection
(Click at the partition_1 at the object browser and select groups of edges)
Apply
Again select another edge at the object browser
Apply
...
...
Apply and close
d. Right Click at Mesh_1 at object browser
e. Export >>>>UNV file
Yours
Anil Kunwar
Anil Kunwar
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
Re: Installation of Salome 7.4.0. in Linux
Exporting Mesh from Salome to Other Softwares
A. Salome to Elmer
1. Export Salome Mesh in .unv format (output file = Mesh_1.unv )
2. Jump into the directory containing Mesh_1.unv and type
B. Salome to OpenFOAM
Method I (In OpenFOAM)
1. Export Salome Mesh in .unv format (output file = Mesh_1.unv )
2. Put the Mesh_1.unv outside the system folder containing controlDict file. controlDict file is a file required by a test in OpenFOAM.
3. Jump into the directory containing Mesh_1.unv file and type the following openFOAM command.
Method II(Within Salome)
1. Download salomeToOpenFOAM.py from https://github.com/nicolasedh/salomeToOpenFOAM
2.In Salome, save the project (Geometry, Mesh) as Study1.hdf
3.In Salome, at Mesh module select the particular mesh and go to: File >>Load Script>> salomeToOpenFOAM.py
4. This script will convert your mesh to NameOfMesh/constant/polyMesh.
Please refer these links:
http://www.cfd-online.com/Forums/openfo ... print.html
http://www.cfd-online.com/Forums/openfo ... oam-2.html
Yours
Anil Kunwar
A. Salome to Elmer
1. Export Salome Mesh in .unv format (output file = Mesh_1.unv )
2. Jump into the directory containing Mesh_1.unv and type
Code: Select all
$ElmerGrid 8 2 Mesh_1.unv -autoclean
Method I (In OpenFOAM)
1. Export Salome Mesh in .unv format (output file = Mesh_1.unv )
2. Put the Mesh_1.unv outside the system folder containing controlDict file. controlDict file is a file required by a test in OpenFOAM.
3. Jump into the directory containing Mesh_1.unv file and type the following openFOAM command.
Code: Select all
$ideasUnvToFoam Mesh_1.unv
1. Download salomeToOpenFOAM.py from https://github.com/nicolasedh/salomeToOpenFOAM
2.In Salome, save the project (Geometry, Mesh) as Study1.hdf
3.In Salome, at Mesh module select the particular mesh and go to: File >>Load Script>> salomeToOpenFOAM.py
4. This script will convert your mesh to NameOfMesh/constant/polyMesh.
Please refer these links:
http://www.cfd-online.com/Forums/openfo ... print.html
http://www.cfd-online.com/Forums/openfo ... oam-2.html
Yours
Anil Kunwar
Anil Kunwar
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
Re: Installation of Salome 7.4.0. in Linux
Hi,
This thread discusses on how boundary is described in Salome software. And, this thread describes about units and measurements in Salome.
Yours
Anil Kunwar
This thread discusses on how boundary is described in Salome software. And, this thread describes about units and measurements in Salome.
Yours
Anil Kunwar
Anil Kunwar
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
Re: Installation of Salome 7.4.0. in Linux
Hi,
Some useful information on universal (.unv) file formats.
1. http://www.sdrl.uc.edu/referenceinfo/un ... ormats.pdf
2. http://www.sdrl.uc.edu/referenceinfo/un ... storehouse
3. http://www.sdrl.uc.edu/referenceinfo/un ... is-testing
4. http://www.sdrl.uc.edu/referenceinfo/un ... ence-guide
5. http://www.salome-platform.org/forum/fo ... #746460036
6. http://www.eng-tips.com/viewthread.cfm?qid=30398
7. http://geuz.org/pipermail/gmsh/2011/006622.html
8. http://www.geuz.org/pipermail/gmsh/2005/001504.html
A Bird Eye View
1. Universal Dataset Number and their Names/Meanings
151 -->> Header
164 -->> Units
58 -->> Function at Nodal DOF
1858 -->> Dataset 58 Qualifiers
2400 -->> Model Header
2420 -->> Coordinate Systems
2411 -->> Nodes-Double Precision
2412 -->> Elements
2467 -->> Permanent Groups
15 -->> Nodes
2431 -->>Trace Lines
82 -->> TraceLines
55 -->>Data at Nodes
1806 -->> Transducer
1807 -->> Virtual Channel Table
1808 -->> Channel Table
1810 -->> Measurement Overall Setup
1815 -->> Order Track Overall Setup
...
http://www.sdrl.uc.edu/referenceinfo/un ... storehouse
Yours
Anil Kunwar
Some useful information on universal (.unv) file formats.
1. http://www.sdrl.uc.edu/referenceinfo/un ... ormats.pdf
2. http://www.sdrl.uc.edu/referenceinfo/un ... storehouse
3. http://www.sdrl.uc.edu/referenceinfo/un ... is-testing
4. http://www.sdrl.uc.edu/referenceinfo/un ... ence-guide
5. http://www.salome-platform.org/forum/fo ... #746460036
6. http://www.eng-tips.com/viewthread.cfm?qid=30398
7. http://geuz.org/pipermail/gmsh/2011/006622.html
8. http://www.geuz.org/pipermail/gmsh/2005/001504.html
A Bird Eye View
1. Universal Dataset Number and their Names/Meanings
151 -->> Header
164 -->> Units
58 -->> Function at Nodal DOF
1858 -->> Dataset 58 Qualifiers
2400 -->> Model Header
2420 -->> Coordinate Systems
2411 -->> Nodes-Double Precision
2412 -->> Elements
2467 -->> Permanent Groups
15 -->> Nodes
2431 -->>Trace Lines
82 -->> TraceLines
55 -->>Data at Nodes
1806 -->> Transducer
1807 -->> Virtual Channel Table
1808 -->> Channel Table
1810 -->> Measurement Overall Setup
1815 -->> Order Track Overall Setup
...
http://www.sdrl.uc.edu/referenceinfo/un ... storehouse
Yours
Anil Kunwar
Last edited by annier on 11 Apr 2015, 17:26, edited 1 time in total.
Anil Kunwar
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
Re: Installation of Salome 7.4.0. in Linux
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:
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.
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
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:
and these material names are represented as names in the Materials block such as:
Yours
Anil Kunwar
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
Code: Select all
Create Groups
Code: Select all
Left , Right, Top, Bottom, Front and Back.
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'
[]
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
[../]
[]
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
[ ]
Code: Select all
[Materials]
...
[./FirstMaterials]
...
block = 'material_1'
...
[ ../]
[./SecondMaterials]
...
block = 'material_2'
...
[ ../]
Anil Kunwar
Last edited by annier on 08 Nov 2015, 00:48, edited 2 times in total.
Anil Kunwar
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
Re: Installation of Salome 7.4.0. in Linux
Some tips of Using Salome software
1. Using Multiple Bodies (CAD and Mesh in Salome, importing in Elmer)
viewtopic.php?f=9&t=3587
A post in Salome Platform forum by an Elmer User
2. Using Python Script to create and mesh a parametrized surface or a surface defined by polynomial expression
http://www.salome-platform.org/forum/forum_10/410069502
http://www.salome-platform.org/forum/fo ... 98131/view
yours sincerely
anil kunwar
1. Using Multiple Bodies (CAD and Mesh in Salome, importing in Elmer)
viewtopic.php?f=9&t=3587
A post in Salome Platform forum by an Elmer User
2. Using Python Script to create and mesh a parametrized surface or a surface defined by polynomial expression
http://www.salome-platform.org/forum/forum_10/410069502
http://www.salome-platform.org/forum/fo ... 98131/view
yours sincerely
anil kunwar
Anil Kunwar
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
Re: Installation of Salome 7.4.0. in Linux
Reading the names of Target Boundaries and Bodies of Salome Mesh by Elmer Solver:
The following link can be referred to :-
viewtopic.php?f=7&t=4220&sid=c0ea53a383 ... 175c335e3c
where, it is expressed that
Anil Kunwar
The following link can be referred to :-
viewtopic.php?f=7&t=4220&sid=c0ea53a383 ... 175c335e3c
where, it is expressed that
Yours Sincerely,raback wrote:When working with Salome there is a way to maintain names when exporting in UNV format for Elmer. In Elmer analysis can then directly use these names, for example, asCode: Select all
Simulation ... Use Mesh Names = True End Body 1 Name = mixer ... End ... Boundary Condition 7 Name = inlet Velocity 1 = 1.0 End
Anil Kunwar
Anil Kunwar
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
Re: Installation of Salome 7.4.0. in Linux
Installation steps for a ubuntu binary of salome-8.3.0 in Ubuntu 16.04
1. Download a package for Linux Ubuntu 16.04 64-bits (2 GB, md5 checksum) from http://www.salome-platform.org/forum/do ... nt-version.
2. Extract the package downloaded and put it(extracted content directory) inside a salome-830 folder at HOME Directory.
3. The python script "salome" inside /HOME/salome-830/SALOME-8.3.0-UB16.04/ directory is executable. Run the following command to enable this execution from bashfile.
4. Open a terminal and type the following command to run or start Salome-8.3.0 software.
References:
1. http://www.salome-platform.org/forum/fo ... 83894/view
2. http://www.salome-platform.org/forum/do ... t-version.
Yours Sincerely,
Anil Kunwar
1. Download a package for Linux Ubuntu 16.04 64-bits (2 GB, md5 checksum) from http://www.salome-platform.org/forum/do ... nt-version.
2. Extract the package downloaded and put it(extracted content directory) inside a salome-830 folder at HOME Directory.
3. The python script "salome" inside /HOME/salome-830/SALOME-8.3.0-UB16.04/ directory is executable. Run the following command to enable this execution from bashfile.
Code: Select all
echo -e '\nalias salome=""~/salome-830/SALOME-8.3.0-UB16.04/./salome""' >> ~/.bashrc
Code: Select all
$ salome
1. http://www.salome-platform.org/forum/fo ... 83894/view
2. http://www.salome-platform.org/forum/do ... t-version.
Yours Sincerely,
Anil Kunwar
Anil Kunwar
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice