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.

  1. 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
    
  2. 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.

  3. 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):
    dsas

    Model -> 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.

  4. 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
    
  5. 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:

  6. Define the general settings:

    Model -> Setup
    Simulation Type = Steady state
    Steady state max. Iter =1
    Apply
    
  7. 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
    
  8. Define the material:

    Model -> Material
    Add
    Material library
    Aluminium (select from the menu)
    Apply to bodies = Body 1 (tick the box)
    Add
    OK
    
  9. 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
    
  10. Define the boundary conditions:

    Model -> Boundary condition
    Add
    Heat Equation
    Temperature = 293.0
    Name = RoomTemp
    Add
    OK
    
  11. 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’.

  12. 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.

  13. 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.

  14. Compute the case:

    Run -> Start solver
    

    rfwe

  15. To view the results, start the postprocessor:

    Run -> postprocesor
    
  16. In the postprocessor, view the results of the computed temperature field of the body:

    .

 

Attachment

Size

pump_carter_sup.stp file

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.

  1. 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
    
  2. 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.

  3. Ž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):
    dsas

    Model -> 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.

  4. 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
    
  5. 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:

  6. Definiramo splošne nastavitve:

    Model -> Setup
    Simulation Type = Steady state
    Steady state max. Iter =1
    Apply
    
  7. 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)
    
  8. Definiramo material:

    Model -> Material
    Add
    Material library
    Aluminium (izberemo iz menija)
    Apply to bodies = Body 1 (postavimo kljukico)
    Add
    OK (V redu)
    
  9. 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)
    
  10. Definiramo robne pogoje:

    Model -> Boundary condition
    Add
    Heat Equation
    Temperature = 293.0
    Name = RoomTemp
    Add
    OK (V redu)
    
  11. 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’.

  12. 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’.

  13. 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.

  14. Izračunamo primer:

    Run -> Start solver
    

    rfwe

  15. Za ogled rezultatov poženemo postprocesor:

    Run -> postprocesor
    
  16. V podprocesoju si ogledamo rezultate izračunanega polja toplotnega telesa:

    .

 

Priponka

Velikost

pump_carter_sup.stp datoteka

177.89 KB