Temperature Field of a Solid Body
The example shows the solution of the heat equation for generic 3D objects. The aluminium object in the figure is heated internally by a heat source with a power of 0.01 W/kg. On certain parts (red surfaces in the figure below) we assume that the temperature is constant, namely 293 K (approx. 20 °C). We are interested in the heat distribution in the body.
Open a terminal window and run:
$ single Job is submitted to default queue . $ module load elmergui Loading qwt/6.0.2 Loading vtk/5.10.1 Loading ftgl/2.1.3-rc5 Loading qt/4.8.4 Loading paraview/3.98 Loading opencascade/6.5.5 Loading elmergui/7.0 $ ElmerGUI
In the ElmerGUI program menu, select:
File -> Open pump_carter_sub.stp
The file is located in ‘elmerlab/lab01’.
After the file is opened, the geometry of the object is shown in a new window and generation of the finite element mesh begins. Progress messages of the generation are shown in the terminal window. When the generation is finished, the ElmerGUI window shows the geometry of the object with the generated finite element mesh.
Maximise the ElmerGUI window to full screen
Moving the object:
Rotating the mouse wheel (forward/backward) zooms the object (in/out)
Pressing the left mouse button while moving the mouse (up/down) rotates the object around the horizontal axis.
Pressing the left mouse button while moving the mouse (left/right) rotates the object around the vertical axis.
We want a finer finite element mesh to be generated.
In the window showing the object geometry, select (this is the window without the finite element mesh, which opened when the geometry file was opened. If we have already closed the window, reopen it with View -> Cad model):
dsasModel -> Preferences (then execute) Restrict mesh size on surfaces by STL density = on (i.e. tick the box) Apply
In the ElmerGUI application window, execute
Mesh -> Remesh
This issues the command to generate a new, denser finite element mesh.
Prepare the surfaces for defining boundary conditions.
As a boundary condition we want to set the temperature on the inner edge of the wider part of the cylindrical openings. This area is defined by six faces, so we must select the surfaces shown in red in the figure (they consist of six faces).

Select the first face by double-clicking on it; to select the next ones, hold the CTRL key while double-clicking on the chosen face. If we select the wrong face, double-click on that face again (while holding the CTRL key). The CTRL key allows adding previously selected faces to or removing them from the selection. If the object is not oriented properly, it can also be rotated during selection, as described above.
When all boundary condition faces are selected, continue with:Mesh -> Unify Surface
We still need to provide the model data. We follow, in order (from top to bottom), the entries in the ‘Model’ drop-down menu. The steps of our example are given below:
Define the general settings:
Model -> Setup Simulation Type = Steady state Steady state max. Iter =1 Apply
Definition of equations:
Model -> Equation Add Select the 'Heat Equation' tab and define: Name = Heat Equation (Change the name 'Equation 1' to 'Heat Equation') Apply to bodies = Body 1 (i.e. tick the box) Heat Equation Active = on (i.e. tick the box) Add OK
Define the material:
Model -> Material Add Material library Aluminium (select from the menu) Apply to bodies = Body 1 (tick the box) Add OK
Define the load:
Model -> Body force Add Select the Heat Equation tab Name = Heating Head Source = 0.01 Apply to bodies = Body 1 (tick the box) Add OK
Define the boundary conditions:
Model -> Boundary condition Add Heat Equation Temperature = 293.0 Name = RoomTemp Add OK
Select the boundary condition regions:
Model -> Set boundary properties (select or tick the option)
Double-click on the area of the previously selected faces for defining boundary conditions. A window for selecting boundary conditions opens. Under ‘Boundary condition’ select ‘RoomTemp’.
Generate the input file for the ‘ElmerSolver’ program:
Sif -> Generate
The resulting file can be viewed by selecting from the menu:
Sif -> Edit
The file can then be edited, or closed with the ‘File->Quit’ command.
Save the project (project data can be saved at any stage of input):
File -> Save Project To save the project, choose any directory (e.g. the 'ProjectFiles' subdirectory) where you want to save your work.
Project data is recalled with: File -> LoadProject, selecting the directory where the data was saved.
Compute the case:
Run -> Start solver
rfwe
To view the results, start the postprocessor:
Run -> postprocesor
In the postprocessor, view the results of the computed temperature field of the body:

.
Attachment |
Size |
|---|---|
177.89 KB |
Temperaturno polje trdnega telesa
Primer prikazuje reševanje toplotne enačbe za generične 3D predmete. Aluminijast predmet na sliki se ogreva notranje s pomočjo toplotnega vira moči 0.01 W/kg. Na določenih delih (rdeče ploskve na spodnji sliki) predpostavimo, da je temperatura konstantna in sicer 293 st K (cca 20 st C). Zanima nas porazdelitev toplote po telesu.
Odpremo terminalsko okno in zaženemo:
$ single Job is submitted to default queue . $ module load elmergui Loading qwt/6.0.2 Loading vtk/5.10.1 Loading ftgl/2.1.3-rc5 Loading qt/4.8.4 Loading paraview/3.98 Loading opencascade/6.5.5 Loading elmergui/7.0 $ ElmerGUI
V meniju programa ElmerGUI izberemo:
File -> Open pump_carter_sub.stp
Datoteka se nahaja se v ‘elmerlab/lab01’.
Po odprtju datoteke se nam v novem oknu prikaže geometrija objekta in prične generiranje mreže končnih elementov. Kontrolni izpisi generiranja se prikazujejo v terminalskem oknu. Ko je generiranje končano se nam v ElmerGUI oknu prikaže geometrija objekta z generirano mrežo končnih elementov.
Povečamo ElmerGUI okno preko celega ekrana
Premikanje objekta:
Z vrtenjem koleščka (naprej/nazaj) miške zumiramo objekt (prinližujemo/oddaljujemo)
Z pritiskom leve miškine tipke in istočasnim premikom miške (gor/dol) rotiramo objekt okoli horizontalne osi.
Z pritiskom leve miškine tipke in istočasnim premikom miške (levo/desno) rotiramo objekt okoli vertkalne osi.
Želimo, da se generira natančnejša mreža končnih elementov.
V oknu z prikazom geometrije objekta izberemo (To je v oknu brez prikaza mreže končnih elementov, ki se je odprlo ob odpiranju datoteke z geometrijo. Če smo okno že zaprli, ga ponovno odpemo z ukazom View -> Cad model):
dsasModel -> Preferences (nato pa izvedemo) Restrict mesh size on surfaces by STL density = on (tj postavimo kljukico) Apply
V oknu ElmerGUI aplikacije pa izvedemo
Mesh -> Remesh
Tako smo podali ukaz za generacijo nove gostejše mreže končnih elementov.
Pripravimo ploskve za določitev robnih pogojev.
Kot robni pogoj želimo nastaviti temperaturo na notranjem robu širšega dela valjastih odprtin. To površino definira šest ploskev, zato moramo izbrati na sliki rdeče prikazane površine (sestavljene so iz šestih ploskev).

Prvo ploskev izberemo z dvojnim klikom nanjo, za izbor naslednjih pa moramo držati tipko CTRL in hkrati izvesti dvojni klik na izbrani ploskvi. Če izberemo napačno ploskev ponovimo dvojni klik na tej ploskvi (ob hkratnem držanji tipke CTRL). Tipka CTRL omogoča dodajanje ali odvzemanje predhodno izbranih ploskev k izboru. Če objekta ni pravilo orientiran, ga med izborom lahko tudi rotiramo, kot je opisano zgoraj.
Ko izberemo vse ploskve robnih pogojev nadaljujemo z:Mesh -> Unify Surface
Podati moramo še podatke modela. Pri tem po vrsti (od vrha proti dnu) sledimo navedbam v padajočem meniju ‘Model’. V nadaljevanju podajamo korake našega priemra:
Definiramo splošne nastavitve:
Model -> Setup Simulation Type = Steady state Steady state max. Iter =1 Apply
Definicija enačb:
Model -> Equation Add Izberemo jeziček 'Heat Equation' in definiramo: Name = Heat Equation (Korigiramo ime 'Equation 1' na 'Heat Equation') Apply to bodies = Body 1 (tj postavimo kljukico) Heat Equation Active = on (tj postavimo kljukico) Add OK (V redu)
Definiramo material:
Model -> Material Add Material library Aluminium (izberemo iz menija) Apply to bodies = Body 1 (postavimo kljukico) Add OK (V redu)
Definiramo obtežbo:
Model -> Body force Add Izberemo jeziček Heat Equation Name = Heating Head Source = 0.01 Apply to bodies = Body 1 (postavimo kljukico) Add OK (V redu)
Definiramo robne pogoje:
Model -> Boundary condition Add Heat Equation Temperature = 293.0 Name = RoomTemp Add OK (V redu)
Izberemo območja robnih pogojev:
Model -> Set boundary properties (izberemo oz odkljukamo opcijo)
Dvokiknemo na površino predhosno izbranih ploskev za določitev robnih pogojev. Odpre se nam okno za izbiro robnih pogojev. Pod ‘Boundary condition’ izberemo ‘RoomTemp’.
Generiramo vhodno datoteko za program ‘ElmerSolver’:
Sif -> Generate
Nastalo datoteko si lahko ogledamo z izbiro iz menija:
Sif -> Edit
Datoteko lahko nato uredimo, ali zapustimo z ukazom ‘File->Quit’.
Shranimo projekt (Podatke projekta lahko shranimo v poljubni vazi vnosa):
File -> Save Project Za shranjevanje projekta izberemo poljuben direktorij (npr. poddirektorij 'ProjectFiles'), kamor želimo shraniti narejeno.
Podatke projekta prikličemo z: File -> LoadProject in izberemo dorektorij, kamor smo podatke shranili.
Izračunamo primer:
Run -> Start solver
rfwe
Za ogled rezultatov poženemo postprocesor:
Run -> postprocesor
V podprocesoju si ogledamo rezultate izračunanega polja toplotnega telesa:

.
Priponka |
Velikost |
|---|---|
177.89 KB |