Difference between revisions of "Case Definitions"
(→Variable Resolution) |
(→Initial Conditions) |
||
Line 55: | Line 55: | ||
=Initial Conditions= | =Initial Conditions= | ||
+ | |||
+ | Initial condition is a set of the initial values assigned to a region of fluid or solid. In Polaris v3.60 only fluid regions are assigned with initial conditions. Users can define multiple initial conditions and assign them to different fluids. | ||
[[File:Setup_ic.png|500px]] | [[File:Setup_ic.png|500px]] |
Revision as of 15:48, 24 July 2015
Polaris CFD adopts SI units in setting up a simulation. All quantities, such as velocity, density and temperature etc are in their corresponding SI unites.
Contents
Vector
Clicking on menu "Setup->Definitions" will bring up the "Vector Definition" dialog as shown below.
A vector is defined by a name, magnitude and direction in x, y, z. Vector's name must be unique. User can add or delete a vector by right-clicking the table. To edit an existing vector, click on the vector in the table and edit it above. Then click on "Apply" to accept the changes.
Reference Frame
A reference frame is a technique to model continuous rotation against a fixed axis. Users define a reference frame by giving a name, rotational speed (rpm) and axis. Then assign it to a geometry such as a fan or a rotor. Polaris CFD solver will create an internal axisymmetric region to encompass the geometry. The internal geometry will be larger than the volume of swept by the rotational geometry. The "Offset" value dictates how much bigger it will be. The internal geometry can also be "Cylinder" or "Fit" in shape.
A "Fit" shaped reference frame is illustrated in the figure above. An axis of rotation must be defined prior to defining the reference frame. Users can define multiple reference frames by right-clicking the table. It may be noted that when there are other geometries near the rotation geometry, the offset value must be carefully chosen so that the reference frame does not intersect the other geometries.
Motion
Polaris CFD supports two kinds of motions, prescribed motion and 6-DOF motion. A motion can be either prescribed or 6-DOF, but it cannot be both at the same time. Polaris CFD solver will handle all movements by rediscretization. A continuous rotation against a fixed axis can be defined as a motion as well. Reference frame will not be created.
"Prescribed motion" can have a translation velocity and a time history profile. Such a profile must be defined prior to defining the motion. Same applies for rotations.
"6-DOF motion" is defined by its starting and ending times. Mass and moments of inertia must be defined as well.
After defining a motion users can assign it to appropriate geometries/regions.
Global Parameters
This page contains some of the most important parameters for setting up a simulation. Most of the parameter names are self-explanatory and are common in most CFD software. Users shall make sure all these parameters are correctly selected/entered.
User can choose one of four different analysis types, i.e. direct numerical simulation (DNS) and three turbulence models. When the flow speed is very low, e.g. less than Mach 0.05, users can set "Matching Mach number" to "No". Then input "Max expected velocity" to be 3 or 5 times the characteristic velocity, depending on the actual situation. This will accelerate the simulation significantly.
The "Comment" text box is for users to enter some text for self reference. This text will be printed when the Polaris Solver runs.
Variable Resolution
The "Refinement" tab defines the variable resolution (VR) used for simulation. Users define finer grids at interested locations to achieve better accuracy without significant penalty of computational cost.
The first entry is "Simd length unit". Users can choose one of the commonly used units: millimeter, meter, inch, foot, etc. This tells Polaris CFD that all geometries that user imported and created are in this length unit. Users do not need to manually scale each geometry unless several imported geometries are in different units.
The "Finest voxel size" is defined in the chosen length unit as well. The "Finest level" is an integer to define the finest level. Polaris CFD's variable resolution starts at level 0, the coarsest level. Coarsest voxel size = Finest voxel size x 2^(Finest level). For example, if finest voxel size is 0.03mm and the finest level is 5, the coarsest voxel size at level 0 is 0.03 x 2^5 = 0.96 mm.
Adaptive mesh refinement (AMR) is a favorable feature to activate the module in Polaris CFD solver to dynamically refine the simulation grid based on certain criteria. For example users can use AMR to refine the grid along a shock wave after it's formed during simulation.
AMR process itself costs time and slows down the simulation. Users can specify when to start AMR and how often to perform AMR. "Flow gradient" is a parameter to control the sensitivity of AMR regridding. Smaller value will trigger more cells/voxels, i.e. larger regions to be refined.
"Fast seeding level" is a feature to run a simulation with the coarse levels, up to the seeding level first. Finer levels will be added when AMR kicks in. This feature will run simulation fast initially to damp out all the initial effects.
"Surface normal" is a way to control refinement along edges and sharp corners. A smaller value indicates a sharper edge.
Initial Conditions
Initial condition is a set of the initial values assigned to a region of fluid or solid. In Polaris v3.60 only fluid regions are assigned with initial conditions. Users can define multiple initial conditions and assign them to different fluids.