3.4. EHF Finger With Constant Plasma Heat Flux¶
In this tutorial one can understand on how to create basic Elmer case with the help of Elmer toolbox, that is included into Elmer module. BREP file of EHF finger will be imported into SMITER GUI and then appropriately modified and meshed. Then the user will learn how to define material properties and boundary conditions and assign them to the mesh. In the end the computation will be run and results will be shown in the Paraview module.
3.4.1. Importing BREP file into SMITER GUI¶
To import BREP file to SMITER GUI, first activate Geometry module, as shown in figure Fig. 3.23.
Then navigate to file Fig. 3.24
, as shown in figureThen navigate to the appropriate folder with the EHF finger and click Open. Refer to figure Fig. 3.25.
The imported BREP
file is shown in the object browser under
Geometry section. The CAD model is displayed in the OCC viewer
on the right side.
3.4.2. Defining Subsections¶
Now we have to divide the model into different subsections. Those subsection have their own independent properties like boundary conditions and material properties. In this tutorial we have three boundary conditions. On top of the finger is constant heat flux due to plasma. In the tank there is cooling temperature of water and heat transfer coefficient. Other areas around the finger are adiabatic. There are also three main components with different material properties, that need to be defined as well. Refer to figure Fig. 3.6.
To define subsections, we have to break down the CAD model to basic entities (like faces, edges, etc) and then merge them back together to get the appropriate subsection. First select the CAD object in Object Browser. Then navigate to Fig. 3.27. With this option the user can break the whole CAD model down to multiple different geometrical entities.
. Refer to figureAfter Explode
option is selected, the dialog in figure
Fig. 3.28 appeares on the screen.
Here user user must first select the main object that will be exploded. The user can select the object in the Object Browser in Geometry section. The possible sub-shapes types are shown in figure Fig. 3.29.
The defined problem is three-dimensional, thus the boundary conditions
will be defined on faces and material properties on solids. In
Sub-shapes type combo box select Face
option and then click
Apply. Repeat the same step for Solid
option and then click
Apply and Close. After that move to the Object Browser and right
click on the object that was just exploded to faces and solids. Select
option Expand All. All geometrical entities of selected subshape
type in the main model will be displayed in the Object Browser.
See figure Fig. 3.30.
Now the user can join two or mode geometrical entites into a group, that presents the subsection. To do that, right click on the main model in Object browser and then select Create Group. See figure Fig. 3.30.
The dialog in figure Fig. 3.31 appeares on screen.
In this dialog one must first select the shape type of entites that
will be included into group. The basic entities are vertices (0D),
edges (1D), faces (2D) and solids (3D). Next one must define the group
name and the main shape. Then the user can select the entities. The
default option for the restriction of selection is No
restriction
.The entities can be selected interactively in the OCC
Viewer
. The user can hover over the entity in the viewer with the
mouse pointer and the entity edges will turn blue. See figure
Fig. 3.32.
If the user click on it, the face edges will turn white and this means that the face was selected. Then the user can move back to dialog and select Add. See figure Fig. 3.33. ID number of the added entity is shown in the left dialog. This way the user cad add different entities to the group. To select more entities, hold down Shift key. After the selection is complete, one can click Apply and Close.
The user has to repeat this step for every subsection. Three subcomponents that define boundary condition regions, are shown in figure Fig. 3.34.
Same step has to be repeated for solids. Refer to figure Fig. 3.6 to see the different definitions of materials and sections. All solid subsections are shown in figure Fig. 3.35.
All newly defined groups can be seen in Object browser under the main object. See figure Fig. 3.36.
3.4.3. Meshing the CAD model¶
After all of the subsections of CAD model were defined, the user can move to Mesh module. To activate mesh module, click on Mesh in the combo box option. See figure Fig. 3.37.
To mesh the finger, the user must first select it in the Object browser and then go to Fig. 3.38. First the user can type new mesh name, following the selection of the CAD object that the user wants to mesh. Then the user can specify the prarameters for the hypotheses, algorithms and type of mesh. There are many possible options and the user can decide for himself what kind of mesh he wants to generate. In this tutorial automatic tetrahedralization is specified with the approximate length of edge of the tetrahedron of 0.01 \(mm\). To get more detailed informations on how to mesh CAD models in SMITER GUI, refer to section Meshing CAD models.
. New dialog appeares on the screen. Refer to figureIf the meshing computation was successful, the new mesh appeares in Object browser under the name that we specified in the dialog. See figure Fig. 3.39.
Again we have to create groups that represent subsections for boundary conditions and material properties. To do that, right click on the mesh in the Object browser in the Mesh section and then Create Group. See figure Fig. 3.40.
New dialog appeares on the screen. First, the main mesh is selected. Then the user has to select the type of the element. Next the user can define the name of the mesh group. In the group type option one has to select Group on geometry. Then the user can navigate to the Object browser and select the group, defined in the Geometry section. The same name of the geometry group will appear in the Geometrical Object widget in the dialog Create Group. Then one has to click Apply. See figure Fig. 3.41.
The new mesh group can be seen in the Mesh module. The user has to repeat those steps for every subsection. In the end all of the mesh groups can be seen in the Object browser. Refer to Fig. 3.42.
3.4.4. Defining The Model Properties¶
To move to ELMER module, select ELMER option from the menu. See figure Fig. 3.43.
Then navigate to Fig. 3.44).
. The following dialog is displayed (figure3.4.4.1. Defining The Solver¶
Two main options from the main menu define the solver. First, user has to open General settings. Dialog appeares on the screen (figure Fig. 3.45).
In the dialog there are three sections (header, simulation and
constants). In the header one can define the results directory. If
left blank, the results are stored in the same folder as SIF
file. Inthe simulation section different solver parameters can be
defined. User should change the Post file to a file with VTK
(.vtk) or VTU
(.vtu) extension, instead of default (.ep)
extension. In the constants segment the user can define different
constants. In the end one has to click Apply to store changes.
Next step is to define the equation. To do that, click on Equations option in the main menu. See figure Fig. 3.46.
Here the user can define multiple different equations. In this tutorial heat equation is the only equation to choose. The user has to set equation to active. The execution priority is 1. With click on the Edit Solver Settings the user can define other properties. When the properties are applied, the user can click Apply. If another equation will be used in the case, click New, otherwise click OK.
3.4.4.2. Defining Material Properties¶
To determine material properties, click on Materials in the main dialog. New dialog appeares on the screen. See figure Fig. 3.47.
In this tutorial three materials with constant properties are defined.
beryllium | CuCrZr | SS316 | |
---|---|---|---|
Density [ \(kg/m^2\) ] | 1800 | 8800 | 7700 |
Heat Conductivity [ \(MW/m^2\) ] | 150 | 330 | 20 |
Density is defined in General section and heat conductivity in Heat Equation section. To save changes, click Apply. To create new material, click New. When done, click OK.
3.4.4.3. Defining Boundary Conditions¶
To define boundary conditions, click on option Boundary conditions in the main menu. New dialog appeares on the screen. See figure Fig. 3.48.
In this tutorial three boundary conditions with constant properties are defined.
- Plasma heat flux: \(q_{pl}=4.7 MW/m^2\)
- Heat transfer coefficient: \(T_{b}=80 C^{\circ}, HTC=13000 W/m^2\)
- Adiabatic boundary condition: \(q_{ad}=0 W/m^2\)
3.4.4.4. Assigning Properties To Sections¶
To assign material property to section, first select the mesh group, that represents a section that you want to assign the material to. Then click on Object properties in the main dialog. New dialog appeares on the screen. See figure Fig. 3.49.
The Body force and Initial condition are left blank. User has to define Equation and Material options according to the defined model. The same process is repeated for all the other materials and boundary conditions as well.
3.4.4.5. Store case to ELMER Study¶
After everything has been defined, one can store the case to study. To do that, click on option Save case to ELMER study. The dialog will close and new object with the name of the case will appear in the Object Browser under ELMER object. This new object contains ElmerGrid meshes and SIF file. If user right-clicks on it, four options appear on the screen. Refer to figure Fig. 3.50.
3.4.4.6. Running the Computation¶
To run the computation, click on option Compute case. The computation runs. Navigate to the folder specified in the ELMER preferences. The following files are generated in the selected folder.
project
└── tutorial_map
├── ehf_finger.unv
├── mesh.boundary
├── mesh.header
├── mesh.names
├── mesh.nodes
├── mesh.elements
├── entities.sif
├── case.sif
├── case0001.vtu
├── case.log
└── ElmerGrid.log
First the UNV
was generated and then used to create ElmerGrid`
files. Logfile ElmerGrid.log contains output information on mesh
conversion from UNV
to ElmerGrid
. Then the command
ElmerSolver was executed.