Workflow
Workflow
This tutorial will help you with mesh preparation. Mesh is necessary to start
working on most CFD-related task. Mesh represents a computational domain
determined by a geometry used during the meshing process.
Prerequisites:
1. STL geometry (or you can create new primitive geometry inside simFlow)
2. mesh created using external tool (or you can create it in simFlow)
Preparing your workspace mesh.
You have 2 ways:
1. Import from a file:
A. Click on the STL button in Geometry panel
the base mesh boundaries can be later assigned with individual boundary
condition.
Create mesh
1. Go to Meshing panel
define the size of the initial mesh manually in Min & Max fields.
Set the density of the initial mesh by specifying divisions along each
axis of the global coordinate system.
4. Optionally in the Base tab expand the list of Boundaries of the initial mesh
to assign specific name and type to each planar boundary of the initial
mesh.
You can create your own boundary name in the field New name.
Import mesh
If you already created your own mesh outside simFlow, you can import it.
1. Go to Import panel
Fluent
Ansys
CFX
GAMBIT
I-DEAS
GMSH
OpenFOAM
Modify mesh
Even after you created a mesh, you can still perform operations on it.
1. Go to MeshTools
Most mesh modyfying operations can be reverted using Restore Previous
Meshbutton. You can think of this option as a 'One Level Undo', that lets you
bring back mesh if you performed an erroneous operation.
2. Choose desired operation:
Transform
Refine
Refine your mesh in regions where higher resolution is required, e.g.
wake region of a vehicle.
You can either refine cells based on Geometry or cells next to a
Wall.
o
Refine Geometry:
Each selected cell of the mesh will be divided into two along
each axis of the coordinate system. You may also define
refinement directions, e.g. if you want to solve 2D problem,
you must refine cells along the axis parallel to the symmetry
plane. You may choose refinement option that uses local or
Define CoordinateSystem
Refine Wall
This option allows for refinement of cells adjacent to the wall.
Use this option if you want to create simplified boundary
layer.
Setting Edge Weight to 0.4 will cause the new cell near boundary to be 40% of
the original cell.
Zones
It is often necessary to define special physical models (e.g. porosity)
in certain areas of the domain. This can be achieved using a
concept of Cell Zone. Cell Zone is a list of cells where special
models can be applied to.
Patch
If you want to set different boundary conditions in distinct areas of
your mesh, you have to divide the mesh using patch function.
o
Utilities
Renumber mesh
Case Setup
After your mesh is ready, it is time to choose what and how you want to solve
your case. To do that, you have to choose solver - an OpenFOAM application to
be used by simFlow.
Choose solver
Every solver is dedicated for different purposes. Choose the one that best fit your
needs.
1. Go to Setup panel
2. Using filters in lower part of the panel narrow down the list of solvers.
3. Select appropriate solver. Notice new panels appearing in the panel list on
the left.
Setting up selected solver
After you choose appropriate solver you need to configure its settings. To do that,
you have a wide range of panels, which are dependent on the selected solver.
Description of each requires a thorough analysis, which will be included in our
documentation soon. A collection of tutorials covering a wide range of topics can
be found in tutorials section.
Creating global parameters
It is useful to have parameters available throughout the whole process of
simulation. Parameter is simply a variable - a letter representing a number. They
help you to change values globally from one place.
There are 2 ways of defining a global parameter:
By putting name of the parameter and number into a chosen input field:
Go to Parameters panel
Fill in the field with a single value or formula (see example above:
defining a global parameter)
Initial Conditions
Initial conditions are basically the pressure, velocity and any other field values at
the moment t = 0.
Basic settings
1. Go to Initial conditions panel. Basic tab should appear,
2. In the p (field pressure) tab enter the number that is to be defined (in SI
units).
3. In the U (velocity vector) tab enter the numbers that is to be defined (in SI
units).
Advanced settings
In addition to basic settings, simFlow allows you to set initial conditions in 3 more
advanced methods. They can be applied simultaneously.
When the results changing in time are more important than the initial
conditions of the simulation.
2. Choose a boundary from the list of boundaries. You can define boundaries
in Mesh panel.
3. Define the character of a boundary.
Character is defined form a list of predefined conditions for all fields, so that
resulting combination represents a physical condition.
The list is dependant on the type of the boundary:
Single time-step is t=0.01. If you set Write Interval to 10 steps (the default
setting), then simFlow will save the results at moments: t=0.1, 0.2, 0.3, ., t max
As in the example above, you want to save the result every 0.1 seconds. Choose
Run Time and set Write Interval to 0.1.
Simulation in the first 10 seconds is smooth, then suddenly accelerates (this can
be set in Boundary Conditions panel). In this case, you need to reduce the time
step to run accurate simulation. To allow automatic selection of the time step,
depending on Courant number, choose Adjust Time Step option. Then set longest
possible time step solver may choose automatically. Set Courant number
Running Calculations
Time has come to finally run your simulation. Go to Run panel to set up last
options.
Use Interrupt button to stop calculations. All your data to this point will
remain untouched.
Console
Charts
Model-3D
the solution going in the wrong direction with current settings; this
way you can stop a time-consuming calculation and correct mesh or
other parameters
2. Wait until Continue Calculation button becomes available and click it.
3. Previous results stay untouched, even when you interrupt calculations and
change time step. Further calculations will simply begin from the moment
they were stopped with changed time step.
Reset Calculation button
Reset Calculation button simply lets you delete result files. Reset should be
done when:
Postprocessing
Postprocessing with ParaView
Fluent
Ensight
FieldView
Tecplot
VTK