PREP User Guide  PREP Version 9.8.1
Aeroelasticity Pre-process

A typical pre-process for an aeroelastic (flutter) simulation with TRACE consists of the following steps:

  • Optional: remove possibly existing eigenmodes (to make sure that no mode with the same name is already present in the CGNS file) (see removeAllEigenmodes)
  • Write surface deformations corresponding to an eigenmode into the CGNS file, either by mapping from an eigenmode file (see Mapping of an eigenmode file) or by computing an artificial mode (see mapping)
  • Set eigenmode properties (see modify)
  • Perform 3D grid deformation (see deformation)
Example
Generation of an artificial bending mode with a frequency of 100 Hz and a phase shift angle of -180°:
PREP -cgns TRACE.linear.input2.gmres.cgns --mapping --bending 0.0001 1 1 0 -pf SOLID_BLADE -mn BendingMode
PREP -cgns TRACE.linear.input2.gmres.cgns --modify -mn BendingMode -mf 100 -ibpa -180. -mm 1
PREP -cgns TRACE.linear.input2.gmres.cgns --deformation -mn BendingMode

Mapping of an eigenmode file

The modal displacements to be stored in the CGNS file have to be of one of the following formats:

  • Patran (file type: RPT)
  • CalculiX results (file type: FRD)
  • Tecplot (file type: TEC)

RPT and FRD files

  • For these types, the option --eigenmode/-em <n> has to be specified. The modes contained in the file can be shown using the fileInfo task:
    PREP -emf stcf11_modes1to5.rpt -ft RPT --fileinfo
  • For RPT files, additionally an element definition file has to be specified with --elementfile
  • An FRD file should only contain plane surface elements.
Example
Map the mode 0 from the CalculiX eigenmode file modes0to5.frd on panel family blade0, scale it with a factor 0.23 and name it blade0_mode000:
PREP -cgns TRACE.cgns -emf modes0to5.frd -ft FRD -em 1 -pf blade0 -mn blade0_mode000 -amp 0.23 --mapping

For FRD files it is possible to map multiple eigenmodes from one FRD file in a single PREP run. To use this functionality a JSON file has to be provided with the -js option. The JSON file must contain the information of the modes which are to be mapped as a JSON array. Each array item must contain dictionary items corresponding to the mapping options:

Example
[
{
"eigenmode": 1,
"modename": "H1_ND5_M1",
"analysisFrequency": 301.76,
"modalMotionMethod": "ModalFSI",
"eigenmodeStatus": "active"
},
{
"eigenmode": 2,
"modename": "H1_ND5_M2",
"analysisFrequency": 301.76,
"modalMotionMethod": "ModalFSI",
"eigenmodeStatus": "active"
}
]
The options eigenmode and modename are mandatory, the other options are optional.

Tecplot files

  • The coordinates have to be named 'CoordinateX', 'CoordinateY' and 'CoordinateZ'.
  • The displacements for real eigenmodes must be named 'DisplacementX', 'DisplacementY' and DisplacementZ' or for complex mode shapes 'DisplacementXReal', 'DisplacementYReal', 'DisplacementZReal', 'DisplacementXImag', 'DisplacementYImag' and 'DisplacementZImag'.
  • Only one zone and only unstructured data in point format (see Tecplot Data Format Guide for more information) is supported.
  • Frequency and IBPA have to be set subsequently by the modify task.
Example
Mapping from an eigenmode file in Tecplot format:
PREP --removeAllEigenmodes -cgns brick_lowres.cgns
PREP --mapping -cgns brick_lowres.cgns -pf walls wall_e -emf brick_lowres.dat -ft TEC -ul m -mn ModeXXX -wfg ../output --verbose
PREP --modify -cgns brick_lowres.cgns -mn ModeXXX -mf 12 -mm 1.8 -ibpa 0
PREP --deformation -cgns brick_lowres.cgns -mn ModeXXX -wdg ../output/brick_lowres.inhaled.cgns
The resulting mode has a frequency of 12 Hz and phase shift angle 0.

Mapping of an eigenmode file with discontinuous surface deformation

Under some circumstances (e.g. mechanical joints in shrouds) discontinuous surface deformation can occur. Additional treatment of these discontinuous regions in the surface displacement field is recommended to prevent FVM cells to degenerate during mesh deformation.

Therefore the the PREP task -sffb (–selectFacesForFreeBoundaryCondition) can be used. Additionally the PREP mapping option -zdad (–zeroDisplacementAtLargeDistance) can be specified during the mapping task to set the surface displacements of the TRACE mesh to zero if FVM cell faces are too far away from the FEM surface mesh used for mapping. The -zdad option should be used if more realistic surface deformations are to be modeled (e.g. if a TRACE panel covers two different mechanically uncoupled surfaces, one is deforming and the other not). The usage of -zdad will create a discontinuous displacement field on specified the surface and typically the -zdad option should be used in conjunction with the -sffb task.

Using the –selectFacesForFreeBoundaryCondition task

Let us assume that we have a turbine setup with a joint in the shroud. The displacement field of the structure should be mapped to the TRACE mesh including the motion of the shroud and it is discontinuous across the joint in the shroud:

Example
Mapping from an eigenmode file in Calculix format:
PREP -cgns TRACE.cgns --removeAllEigenmodes
PREP -cgns TRACE.cgns --mapping -pf row01Blade_Wall_ps row01Blade_Wall_ss row01Tip_Wall -emf eigenmode.frd -ft FRD -mn modename -rtm transformationmatrix
PREP -cgns TRACE.cgns -sffb -plf pointlistfile.frd -ft FRD -r 0.001 -pf row01Tip_Wall -rtm transformationmatrix
PREP -cgns TRACE.cgns --deformation -mn modename

PREP will always expect all FE input units to be in mm (length) and t (mass) for the –mapping and -sffb tasks. This can be changed with the options '-ul m' and '-um kg'. The above example will map displacements from the eigenmode file 'eigenmode.frd' onto the panel families 'row01Blade_Wall_ps row01Blade_Wall_ss' (the blade surface) and 'row01Tip_Wall' (the shroud surface).

The -sffb task will mark all faces of the 'row01Tip_Wall' panel family for which the distance to any point specified in the file 'pointlistfile.frd' (-plf) is below 0.001 m (specified with -r). Notice that in case of a '.frd' filetype these points may be stored as a line but PREP will only consider the location of the points to mark nearby faces - the path of such a line is irrelevant.

For the –mapping and -sffb tasks a transformation matrix can be supplied with the option ('-rtm'). If no transformation should be used this must be explicitly specified for the -sffb task with '-ntm'. The faces marked by the -sffb task will receive a Neumann type boundary condition for the subsequent mesh deformation task and thus a discontinuous displacement field will be smeared out.

Notice that without any further actions the whole surface of 'row01Tip_Wall' will receive deformation data even if some regions of the panel family are not covered by the mesh contained in the eigenmode file. These regions will receive extrapolated deformation data. To prevent this consider the next section.

Using the –zeroDisplacementAtLargeDistance option

Consider a TRACE panel family ('row01Tip_Wall') which covers two mechanically uncoupled surfaces. For one surface region a deformation field is provided from a structural analysis and the rest of the surface should not move. For this case the above example can be extended as follows:

Example
Mapping from an eigenmode file in Calculix format:
PREP -cgns TRACE.cgns --removeAllEigenmodes
PREP -cgns TRACE.cgns --mapping -pf row01Blade_Wall_ps row01Blade_Wall_ss row01Tip_Wall -emf eigenmode.frd -ft FRD -mn modename
-rtm transformationmatrix -zdad 0.002 row01Tip_Wall
PREP -cgns TRACE.cgns -sffb -plf pointlistfile.frd -ft FRD -r 0.001 -pf row01Tip_Wall -rtm transformationmatrix
PREP -cgns TRACE.cgns --deformation -mn modename

Now all faces of the panel family 'row01Tip_Wall' receive zero displacement if the distance to the surface specified in the file 'eigenmode.frd' is greater than '0.002'.