FUN3D v12.4 Training Session 3: Gridding Considerations, Solution Basics, and Visualization
FUN3D v12.4 Training Session 3: Gridding Considerations, Solution Basics, and Visualization
FUN3D v12.4 Training Session 3: Gridding Considerations, Solution Basics, and Visualization
4 Training
Session 3:
Gridding Considerations,
Solution Basics, and Visualization
Eric Nielsen
X .ugrid/.(l)r8.ugrid/.(l)b8.ugrid,
AFLR3 X X Direct
Also Binary .mapbc
Point-matched, Hexes,
X X Converter .p3d, .nmf
multiblock Plot3D degenerates
The development team can work with you to handle other formats as needed
3
1 4000 Wing
2 5000 Farfield
3 6662 Symmetry plane
• FUN3D coordinate system differs from the standard wind coordinate system
by a 180º rotation about the y-axis
• Positive x-axis is toward the “back” of the vehicle (downstream)
• Positive y-axis is out the “right wing”
• Positive z-axis is “upward”
• The freestream angle of attack and yaw angle are defined as shown
• For this case, we will assume that someone has provided a set of
VGRID files containing the mesh
– f6fx2b.cogsg, f6fx2b.bc, and f6fx2b.mapbc
• It is always a good idea to examine the .mapbc file first to check the
boundary conditions and any family names
– Note that specific boundary conditions will be covered in a separate session
... PM (64,skip_do_min) : 0 F
... Calling ParMetis (ParMETIS_V3_PartKway) .... 0 F
... edgeCut 104885 # of edges cut by partitioning (measure of communication)
... Time for ParMetis: .2 s
... Constructing partition node sets for level-0... 2994053 T
... Edge Partitioning ....
... Boundary partitioning....
... Reordering for cache efficiency....
... Write global grid information to f6fx2b.grid_info
... Time after preprocess TIME/Mem(MB): 1.60 180.52 180.52 1.6 secs required to preprocess the mesh
NOTE: kappa_umuscl set by grid: .00
Grid read complete
y-symmetry metrics modified/examined: 23418/23418
Distance_function unique ordering T 20000000
construct partial boundary...nloop= 1
find closer surface edge...
find closer surface face...
Wall spacing: 0.766E-03 min, 0.121E-02 max, 0.115E-02 avg Min/max/avg wall spacing statistics
cell statistics: type, min volume, max volume, max face angle Cell stats now broken out by cell type
cell statistics: prz, 0.16960303E-06, 0.52577508E-01, 164.861624007
cell statistics: hex, 0.83173480E-09, 0.12843645E-04, 123.906431556
cell statistics: all, 0.83173480E-09, 0.52577508E-01, 164.861624007
... PM (64,skip_do_min) : 0 F
... Calling ParMetis (ParMETIS_V3_PartKway) .... 0 F
... edgeCut 10528
... Time for ParMetis: .0 s
... checking for spanwise edge cuts.
... Constructing partition node sets for level-0... 109302 T
... Edge Partitioning ....
... Boundary partitioning....
... Reordering for cache efficiency....
... ordering edges for 2D.
... Write global grid information to 0012.grid_info
... Time after preprocess TIME/Mem(MB): 0.29 61.23 61.23
NOTE: kappa_umuscl set by grid: .00
Grid read complete
node,locvc 46******************************
node,locvc_type 46 tet tet tet tet tet
node,locvc 17368************************************
node,locvc_type 17368 tet tet tet tet tet tet
Problem
• Unexpected termination, especially during preprocessing or first time
step
– Are your shell limits set?
– Do you have enough local memory for what you are trying to run?
Problem
• Solver suddenly dies during otherwise seemingly healthy run
– Sometimes useful to visualize solution just before failure
– Is it a viscous case on a VGRID mesh? Try turning on
large_angle_fix in &special_parameters namelist (viscous flux
discretization degenerates in sliver cells common to VGRID meshes)
– Is it a turbulent flow on a mesh generated using AFLR3? Look for
“eroded” boundary layer grids near geometric singularities – AFLR3
sometimes has trouble adding viscous layers near complex corners, etc
FUN3D Training Workshop
http://fun3d.larc.nasa.gov 27
March 24-25, 2014
What Could Possibly Go Wrong?
In General…
• Do not hesitate to send questions to [email protected] ;
we are happy to try to diagnose problems
– Please send as much information about the problem/inputs/environment
that you can, as well as all screen output, any error output, and
config.log
– In extreme cases, we may request your grid and attempt to run a case for
you to track down the problem
– If you cannot send us a case due to restrictions, size, etc, a
generic/smaller representative case that behaves similarly can be useful
– Check the manual for guidance
• Ask the FUN3D user community, [email protected]
-3.5
-3
Cp
-1.5
-1
-0.5
0.5
1
-0.5 -0.25 0 0.25 0.5 0.75 1
x
Iso-surfaces
Schlieren,
boundary output
• If you already have a converged solution and don’t want to advance the
solution any further, can do a “pass through” run:
– set steps = 0 in &code_run_control
– You must have a restart file ([project].flow)
– Run the solver with the appropriate namelist input to get desired
output
– [project].flow will remain unaltered after completion