Documentation 6b54b78464
Loading...
Searching...
No Matches
CSurfaceMovement Class Reference

Class for moving the surface numerical grid. More...

#include <CSurfaceMovement.hpp>

Inheritance diagram for CSurfaceMovement:
[legend]

Public Member Functions

 CSurfaceMovement (void)
 Constructor of the class.
 
 ~CSurfaceMovement (void) override
 Destructor of the class.
 
void SetHicksHenne (CGeometry *boundary, CConfig *config, unsigned short iDV, bool ResetDef)
 Set a Hicks-Henne deformation bump functions on an airfoil.
 
void SetSurface_Bump (CGeometry *boundary, CConfig *config, unsigned short iDV, bool ResetDef)
 Set a Hicks-Henne deformation bump functions on an airfoil.
 
void SetAngleOfAttack (CGeometry *boundary, CConfig *config, unsigned short iDV, bool ResetDef)
 Set a Hicks-Henne deformation bump functions on an airfoil.
 
void SetCST (CGeometry *boundary, CConfig *config, unsigned short iDV, bool ResetDef)
 Set a deformation based on a change in the Kulfan parameters for an airfoil.
 
void SetHicksHenneCamber (CGeometry *boundary, CConfig *config)
 Set a Hicks-Henne deformation bump function on the camberline of an airfoil.
 
void SetNACA_4Digits (CGeometry *boundary, CConfig *config)
 Set a NACA 4 digits airfoil family for airfoil deformation.
 
void SetParabolic (CGeometry *boundary, CConfig *config)
 Set a parabolic family for airfoil deformation.
 
void SetAirfoil (CGeometry *boundary, CConfig *config)
 Set a obstacle in a channel.
 
void SetRotation (CGeometry *boundary, CConfig *config, unsigned short iDV, bool ResetDef)
 Set a rotation for surface movement.
 
void HTP_Rotation (CGeometry *geometry, CConfig *config, unsigned long iter, unsigned short iZone)
 Computes the displacement of a rotating surface for a dynamic mesh simulation.
 
void AeroelasticDeform (CGeometry *geometry, CConfig *config, unsigned long TimeIter, unsigned short iMarker, unsigned short iMarker_Monitoring, vector< su2double > &displacements)
 Unsteady aeroelastic grid movement by deforming the mesh.
 
void SetBoundary_Flutter3D (CGeometry *geometry, CConfig *config, CFreeFormDefBox **FFDBox, unsigned long iter, unsigned short iZone)
 Deforms a 3-D flutter/pitching surface during an unsteady simulation.
 
void SetExternal_Deformation (CGeometry *geometry, CConfig *config, unsigned short iZone, unsigned long iter)
 Set any surface deformationsbased on an input file.
 
void SetTranslation (CGeometry *boundary, CConfig *config, unsigned short iDV, bool ResetDef)
 Set a displacement for surface movement.
 
void SetScale (CGeometry *boundary, CConfig *config, unsigned short iDV, bool ResetDef)
 Set a displacement for surface movement.
 
void CopyBoundary (CGeometry *geometry, CConfig *config)
 Copy the boundary coordinates to each vertex.
 
vector< vector< su2double > > SetSurface_Deformation (CGeometry *geometry, CConfig *config) override
 Set the surface/boundary deformation.
 
void SetParametricCoord (CGeometry *geometry, CConfig *config, CFreeFormDefBox *FFDBox, unsigned short iFFDBox)
 Compute the parametric coordinates of a grid point using a point inversion strategy in the free form FFDBox.
 
void UpdateParametricCoord (CGeometry *geometry, CConfig *config, CFreeFormDefBox *FFDBox, unsigned short iFFDBox)
 Update the parametric coordinates of a grid point using a point inversion strategy in the free form FFDBox.
 
void CheckFFDIntersections (CGeometry *geometry, CConfig *config, CFreeFormDefBox *FFDBox, unsigned short iFFDBox)
 Check the intersections of the FFD with the surface.
 
void CheckFFDDimension (CGeometry *geometry, CConfig *config, CFreeFormDefBox *FFDBox, unsigned short iFFDBox)
 Check the intersections of the FFD with the surface.
 
void SetParametricCoordCP (CGeometry *geometry, CConfig *config, CFreeFormDefBox *FFDBoxParent, CFreeFormDefBox *FFDBoxChild)
 Set the Parametric coordinates.
 
void GetCartesianCoordCP (CGeometry *geometry, CConfig *config, CFreeFormDefBox *FFDBoxParent, CFreeFormDefBox *FFDBoxChild)
 Get the cartes.
 
void ApplyDesignVariables (CGeometry *geometry, CConfig *config, CFreeFormDefBox **FFDBox, unsigned short iFFDBox)
 Apply the design variables to the control point position.
 
su2double SetCartesianCoord (CGeometry *geometry, CConfig *config, CFreeFormDefBox *FFDBox, unsigned short iFFDBox, bool ResetDef)
 Recompute the cartesian coordinates using the control points position.
 
bool SetFFDCPChange_2D (CGeometry *geometry, CConfig *config, CFreeFormDefBox *FFDBox, CFreeFormDefBox **ResetFFDBox, unsigned short iDV, bool ResetDef) const
 Set the deformation of the Free From box using the control point position.
 
bool SetFFDCPChange (CGeometry *geometry, CConfig *config, CFreeFormDefBox *FFDBox, CFreeFormDefBox **ResetFFDBox, unsigned short iDV, bool ResetDef) const
 Set the deformation of the Free From box using the control point position.
 
bool SetFFDGull (CGeometry *geometry, CConfig *config, CFreeFormDefBox *FFDBox, CFreeFormDefBox **ResetFFDBox, unsigned short iDV, bool ResetDef) const
 Set the deformation of the Free From box using the control point position.
 
bool SetFFDNacelle (CGeometry *geometry, CConfig *config, CFreeFormDefBox *FFDBox, CFreeFormDefBox **ResetFFDBox, unsigned short iDV, bool ResetDef) const
 Set the deformation of the Free From box using the control point position.
 
bool SetFFDCamber_2D (CGeometry *geometry, CConfig *config, CFreeFormDefBox *FFDBox, CFreeFormDefBox **ResetFFDBox, unsigned short iDV, bool ResetDef) const
 Set a camber deformation of the Free From box using the control point position.
 
bool SetFFDThickness_2D (CGeometry *geometry, CConfig *config, CFreeFormDefBox *FFDBox, CFreeFormDefBox **ResetFFDBox, unsigned short iDV, bool ResetDef) const
 Set a thickness deformation of the Free From box using the control point position.
 
bool SetFFDCamber (CGeometry *geometry, CConfig *config, CFreeFormDefBox *FFDBox, CFreeFormDefBox **ResetFFDBox, unsigned short iDV, bool ResetDef) const
 Set a camber deformation of the Free From box using the control point position.
 
bool SetFFDThickness (CGeometry *geometry, CConfig *config, CFreeFormDefBox *FFDBox, CFreeFormDefBox **ResetFFDBox, unsigned short iDV, bool ResetDef) const
 Set a thickness deformation of the Free From box using the control point position.
 
void SetFFDAngleOfAttack (CGeometry *geometry, CConfig *config, CFreeFormDefBox *FFDBox, CFreeFormDefBox **ResetFFDBox, unsigned short iDV, bool ResetDef)
 Set a thickness deformation of the Free From box using the control point position.
 
bool SetFFDTwist (CGeometry *geometry, CConfig *config, CFreeFormDefBox *FFDBox, CFreeFormDefBox **ResetFFDBox, unsigned short iDV, bool ResetDef) const
 Set a twist angle deformation of the Free From box using the control point position.
 
bool SetFFDRotation (CGeometry *geometry, CConfig *config, CFreeFormDefBox *FFDBox, CFreeFormDefBox **ResetFFDBox, unsigned short iDV, bool ResetDef) const
 Set a rotation angle deformation of the Free From box using the control point position.
 
bool SetFFDControl_Surface (CGeometry *geometry, CConfig *config, CFreeFormDefBox *FFDBox, CFreeFormDefBox **ResetFFDBox, unsigned short iDV, bool ResetDef) const
 Set a rotation angle deformation in a control surface of the Free From box using the control point position.
 
void ReadFFDInfo (CGeometry *geometry, CConfig *config, CFreeFormDefBox **FFDBox, const string &val_mesh_filename)
 Read the free form information from the grid input file.
 
void ReadFFDInfo (CGeometry *geometry, CConfig *config, CFreeFormDefBox **FFDBox)
 Read the free form information from the grid input file.
 
void MergeFFDInfo (CGeometry *geometry, CConfig *config)
 Merge the Free Form information in the SU2 file.
 
void WriteFFDInfo (CSurfaceMovement **surface_movement, CGeometry ****geometry, CConfig **config)
 Write the Free Form information in the SU2 file.
 
bool GetFFDBoxDefinition (void) const
 Get information about if there is a complete FFDBox definition, or it is necessary to compute the parametric coordinates.
 
bool CheckFFDBoxDefinition (CConfig *config, unsigned short iDV)
 Check if the design variable definition matches the FFD box definition.
 
unsigned short GetnFFDBox (void) const
 Obtain the number of FFDBoxes.
 
unsigned short GetnLevel (void) const
 Obtain the number of levels.
 
void SetSurface_Derivative (CGeometry *geometry, CConfig *config)
 Set derivatives of the surface/boundary deformation.
 
unsigned long calculateJacobianDeterminant (CGeometry *geometry, CConfig *config, CFreeFormDefBox *FFDBox) const
 Calculate the determinant of the Jacobian matrix for the FFD problem.
 
- Public Member Functions inherited from CGridMovement
 CGridMovement (void)
 Constructor of the class.
 
virtual ~CGridMovement (void)
 Destructor of the class.
 

Public Attributes

vector< su2double > GlobalCoordX [MAX_NUMBER_FFD]
 
vector< su2double > GlobalCoordY [MAX_NUMBER_FFD]
 
vector< su2double > GlobalCoordZ [MAX_NUMBER_FFD]
 
vector< string > GlobalTag [MAX_NUMBER_FFD]
 
vector< unsigned long > GlobalPoint [MAX_NUMBER_FFD]
 

Protected Attributes

CFreeFormDefBox ** FFDBox
 Definition of the Free Form Deformation Box.
 
unsigned short nFFDBox
 Number of FFD FFDBoxes.
 
unsigned short nLevel
 Level of the FFD FFDBoxes (parent/child).
 
bool FFDBoxDefinition
 If the FFD FFDBox has been defined in the input file.
 
- Protected Attributes inherited from CGridMovement
int rank
 MPI Rank.
 
int size
 MPI Size.
 

Detailed Description

Class for moving the surface numerical grid.

Author
F. Palacios, T. Economon.

Constructor & Destructor Documentation

◆ CSurfaceMovement()

CSurfaceMovement::CSurfaceMovement ( void  )

Constructor of the class.

◆ ~CSurfaceMovement()

CSurfaceMovement::~CSurfaceMovement ( void  )
override

Destructor of the class.

Member Function Documentation

◆ AeroelasticDeform()

void CSurfaceMovement::AeroelasticDeform ( CGeometry *  geometry,
CConfig *  config,
unsigned long  TimeIter,
unsigned short  iMarker,
unsigned short  iMarker_Monitoring,
vector< su2double > &  displacements 
)

Unsteady aeroelastic grid movement by deforming the mesh.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.
[in]ExtIter- Physical iteration number.
[in]iMarker- Marker to deform.
[in]iMarker_Monitoring- Marker we are monitoring.
[in]displacements- solution of typical section wing model.

◆ ApplyDesignVariables()

void CSurfaceMovement::ApplyDesignVariables ( CGeometry *  geometry,
CConfig *  config,
CFreeFormDefBox **  FFDBox,
unsigned short  iFFDBox 
)

Apply the design variables to the control point position.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.
[in]FFDBox- Array with all the free forms FFDBoxes of the computation.
[in]iFFDBox- Index of FFD box.

◆ calculateJacobianDeterminant()

unsigned long CSurfaceMovement::calculateJacobianDeterminant ( CGeometry *  geometry,
CConfig *  config,
CFreeFormDefBox *  FFDBox 
) const

Calculate the determinant of the Jacobian matrix for the FFD problem.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.
[in]FFDBox- Free form deformation box.
Returns
Number of points with negative Jacobian determinant.

◆ CheckFFDBoxDefinition()

bool CSurfaceMovement::CheckFFDBoxDefinition ( CConfig *  config,
unsigned short  iDV 
)
inline

Check if the design variable definition matches the FFD box definition.

Parameters
[in]config- Definition of the particular problem.
[in]iDV- Index of the design variable.
Returns
TRUE if the FFD box name referenced with DV_PARAM can be found in the FFD box definition; otherwise FALSE.

◆ CheckFFDDimension()

void CSurfaceMovement::CheckFFDDimension ( CGeometry *  geometry,
CConfig *  config,
CFreeFormDefBox *  FFDBox,
unsigned short  iFFDBox 
)

Check the intersections of the FFD with the surface.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.
[in]FFDBox- Array with all the free forms FFDBoxes of the computation.
[in]iFFDBox- Index of FFD box.

◆ CheckFFDIntersections()

void CSurfaceMovement::CheckFFDIntersections ( CGeometry *  geometry,
CConfig *  config,
CFreeFormDefBox *  FFDBox,
unsigned short  iFFDBox 
)

Check the intersections of the FFD with the surface.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.
[in]FFDBox- Array with all the free forms FFDBoxes of the computation.
[in]iFFDBox- Index of FFD box.

◆ CopyBoundary()

void CSurfaceMovement::CopyBoundary ( CGeometry *  geometry,
CConfig *  config 
)

Copy the boundary coordinates to each vertex.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.

◆ GetCartesianCoordCP()

void CSurfaceMovement::GetCartesianCoordCP ( CGeometry *  geometry,
CConfig *  config,
CFreeFormDefBox *  FFDBoxParent,
CFreeFormDefBox *  FFDBoxChild 
)

Get the cartes.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.
[in]FFDBoxParent- Array with parent FFDBoxes of the computation.
[in]FFDBoxChild- Array with child FFDBoxes of the computation.

◆ GetFFDBoxDefinition()

bool CSurfaceMovement::GetFFDBoxDefinition ( void  ) const
inline

Get information about if there is a complete FFDBox definition, or it is necessary to compute the parametric coordinates.

Returns
TRUE if the input grid file has a complete information; otherwise FALSE.

◆ GetnFFDBox()

unsigned short CSurfaceMovement::GetnFFDBox ( void  ) const
inline

Obtain the number of FFDBoxes.

Returns
Number of FFD FFDBoxes.

◆ GetnLevel()

unsigned short CSurfaceMovement::GetnLevel ( void  ) const
inline

Obtain the number of levels.

Returns
Number of FFD levels.

◆ HTP_Rotation()

void CSurfaceMovement::HTP_Rotation ( CGeometry *  geometry,
CConfig *  config,
unsigned long  iter,
unsigned short  iZone 
)

Computes the displacement of a rotating surface for a dynamic mesh simulation.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.
[in]iter- Current physical time iteration.
[in]iZone- Zone number in the mesh.

◆ MergeFFDInfo()

void CSurfaceMovement::MergeFFDInfo ( CGeometry *  geometry,
CConfig *  config 
)

Merge the Free Form information in the SU2 file.

Parameters
[in]config- Definition of the particular problem.
[in]geometry- Geometrical definition of the problem.
[in]val_mesh_filename- Name of the grid output file.

◆ ReadFFDInfo() [1/2]

void CSurfaceMovement::ReadFFDInfo ( CGeometry *  geometry,
CConfig *  config,
CFreeFormDefBox **  FFDBox 
)

Read the free form information from the grid input file.

Note
If there is no control point information, and no parametric coordinates information, the code will compute that information.
Parameters
[in]config- Definition of the particular problem.
[in]geometry- Geometrical definition of the problem.
[in]FFDBox- Array with all the free forms FFDBoxes of the computation.

◆ ReadFFDInfo() [2/2]

void CSurfaceMovement::ReadFFDInfo ( CGeometry *  geometry,
CConfig *  config,
CFreeFormDefBox **  FFDBox,
const string &  val_mesh_filename 
)

Read the free form information from the grid input file.

Note
If there is no control point information, and no parametric coordinates information, the code will compute that information.
Parameters
[in]config- Definition of the particular problem.
[in]geometry- Geometrical definition of the problem.
[in]FFDBox- Array with all the free forms FFDBoxes of the computation.
[in]val_mesh_filename- Name of the grid input file.

◆ SetAirfoil()

void CSurfaceMovement::SetAirfoil ( CGeometry *  boundary,
CConfig *  config 
)

Set a obstacle in a channel.

Parameters
[in]boundary- Geometry of the boundary.
[in]config- Definition of the particular problem.

◆ SetAngleOfAttack()

void CSurfaceMovement::SetAngleOfAttack ( CGeometry *  boundary,
CConfig *  config,
unsigned short  iDV,
bool  ResetDef 
)

Set a Hicks-Henne deformation bump functions on an airfoil.

Parameters
[in]boundary- Geometry of the boundary.
[in]config- Definition of the particular problem.
[in]iDV- Index of the design variable.
[in]ResetDef- Reset the deformation before starting a new one.

◆ SetBoundary_Flutter3D()

void CSurfaceMovement::SetBoundary_Flutter3D ( CGeometry *  geometry,
CConfig *  config,
CFreeFormDefBox **  FFDBox,
unsigned long  iter,
unsigned short  iZone 
)

Deforms a 3-D flutter/pitching surface during an unsteady simulation.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.
[in]iter- Current physical time iteration.
[in]iZone- Zone number in the mesh.

◆ SetCartesianCoord()

su2double CSurfaceMovement::SetCartesianCoord ( CGeometry *  geometry,
CConfig *  config,
CFreeFormDefBox *  FFDBox,
unsigned short  iFFDBox,
bool  ResetDef 
)

Recompute the cartesian coordinates using the control points position.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.
[in]FFDBox- Array with all the free forms FFDBoxes of the computation.
[in]iFFDBox- Index of FFD box.

◆ SetCST()

void CSurfaceMovement::SetCST ( CGeometry *  boundary,
CConfig *  config,
unsigned short  iDV,
bool  ResetDef 
)

Set a deformation based on a change in the Kulfan parameters for an airfoil.

Parameters
[in]boundary- Geometry of the boundary.
[in]config- Definition of the particular problem.
[in]iDV- Index of the design variable.
[in]ResetDef- Reset the deformation before starting a new one.

◆ SetExternal_Deformation()

void CSurfaceMovement::SetExternal_Deformation ( CGeometry *  geometry,
CConfig *  config,
unsigned short  iZone,
unsigned long  iter 
)

Set any surface deformationsbased on an input file.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.
[in]iZone- Zone number in the mesh.
[in]iter- Current physical time iteration.

◆ SetFFDAngleOfAttack()

void CSurfaceMovement::SetFFDAngleOfAttack ( CGeometry *  geometry,
CConfig *  config,
CFreeFormDefBox *  FFDBox,
CFreeFormDefBox **  ResetFFDBox,
unsigned short  iDV,
bool  ResetDef 
)

Set a thickness deformation of the Free From box using the control point position.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.
[in]FFDBox- Array with all the free forms FFDBoxes of the computation.
[in]iDV- Index of the design variable.
[in]ResetDef- Reset the deformation before starting a new one.

◆ SetFFDCamber()

bool CSurfaceMovement::SetFFDCamber ( CGeometry *  geometry,
CConfig *  config,
CFreeFormDefBox *  FFDBox,
CFreeFormDefBox **  ResetFFDBox,
unsigned short  iDV,
bool  ResetDef 
) const

Set a camber deformation of the Free From box using the control point position.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.
[in]FFDBox- Array with all the free forms FFDBoxes of the computation.
[in]iDV- Index of the design variable.
[in]ResetDef- Reset the deformation before starting a new one.

◆ SetFFDCamber_2D()

bool CSurfaceMovement::SetFFDCamber_2D ( CGeometry *  geometry,
CConfig *  config,
CFreeFormDefBox *  FFDBox,
CFreeFormDefBox **  ResetFFDBox,
unsigned short  iDV,
bool  ResetDef 
) const

Set a camber deformation of the Free From box using the control point position.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.
[in]FFDBox- Array with all the free forms FFDBoxes of the computation.
[in]iDV- Index of the design variable.
[in]ResetDef- Reset the deformation before starting a new one.

◆ SetFFDControl_Surface()

bool CSurfaceMovement::SetFFDControl_Surface ( CGeometry *  geometry,
CConfig *  config,
CFreeFormDefBox *  FFDBox,
CFreeFormDefBox **  ResetFFDBox,
unsigned short  iDV,
bool  ResetDef 
) const

Set a rotation angle deformation in a control surface of the Free From box using the control point position.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.
[in]FFDBox- Array with all the free forms FFDBoxes of the computation.
[in]iDV- Index of the design variable.
[in]ResetDef- Reset the deformation before starting a new one.

◆ SetFFDCPChange()

bool CSurfaceMovement::SetFFDCPChange ( CGeometry *  geometry,
CConfig *  config,
CFreeFormDefBox *  FFDBox,
CFreeFormDefBox **  ResetFFDBox,
unsigned short  iDV,
bool  ResetDef 
) const

Set the deformation of the Free From box using the control point position.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.
[in]FFDBox- Array with all the free forms FFDBoxes of the computation.
[in]iDV- Index of the design variable.
[in]ResetDef- Reset the deformation before starting a new one.

◆ SetFFDCPChange_2D()

bool CSurfaceMovement::SetFFDCPChange_2D ( CGeometry *  geometry,
CConfig *  config,
CFreeFormDefBox *  FFDBox,
CFreeFormDefBox **  ResetFFDBox,
unsigned short  iDV,
bool  ResetDef 
) const

Set the deformation of the Free From box using the control point position.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.
[in]FFDBox- Array with all the free forms FFDBoxes of the computation.
[in]iDV- Index of the design variable.
[in]ResetDef- Reset the deformation before starting a new one.

◆ SetFFDGull()

bool CSurfaceMovement::SetFFDGull ( CGeometry *  geometry,
CConfig *  config,
CFreeFormDefBox *  FFDBox,
CFreeFormDefBox **  ResetFFDBox,
unsigned short  iDV,
bool  ResetDef 
) const

Set the deformation of the Free From box using the control point position.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.
[in]FFDBox- Array with all the free forms FFDBoxes of the computation.
[in]iDV- Index of the design variable.
[in]ResetDef- Reset the deformation before starting a new one.

◆ SetFFDNacelle()

bool CSurfaceMovement::SetFFDNacelle ( CGeometry *  geometry,
CConfig *  config,
CFreeFormDefBox *  FFDBox,
CFreeFormDefBox **  ResetFFDBox,
unsigned short  iDV,
bool  ResetDef 
) const

Set the deformation of the Free From box using the control point position.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.
[in]FFDBox- Array with all the free forms FFDBoxes of the computation.
[in]iDV- Index of the design variable.
[in]ResetDef- Reset the deformation before starting a new one.

◆ SetFFDRotation()

bool CSurfaceMovement::SetFFDRotation ( CGeometry *  geometry,
CConfig *  config,
CFreeFormDefBox *  FFDBox,
CFreeFormDefBox **  ResetFFDBox,
unsigned short  iDV,
bool  ResetDef 
) const

Set a rotation angle deformation of the Free From box using the control point position.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.
[in]FFDBox- Array with all the free forms FFDBoxes of the computation.
[in]iDV- Index of the design variable.
[in]ResetDef- Reset the deformation before starting a new one.

◆ SetFFDThickness()

bool CSurfaceMovement::SetFFDThickness ( CGeometry *  geometry,
CConfig *  config,
CFreeFormDefBox *  FFDBox,
CFreeFormDefBox **  ResetFFDBox,
unsigned short  iDV,
bool  ResetDef 
) const

Set a thickness deformation of the Free From box using the control point position.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.
[in]FFDBox- Array with all the free forms FFDBoxes of the computation.
[in]iDV- Index of the design variable.
[in]ResetDef- Reset the deformation before starting a new one.

◆ SetFFDThickness_2D()

bool CSurfaceMovement::SetFFDThickness_2D ( CGeometry *  geometry,
CConfig *  config,
CFreeFormDefBox *  FFDBox,
CFreeFormDefBox **  ResetFFDBox,
unsigned short  iDV,
bool  ResetDef 
) const

Set a thickness deformation of the Free From box using the control point position.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.
[in]FFDBox- Array with all the free forms FFDBoxes of the computation.
[in]iDV- Index of the design variable.
[in]ResetDef- Reset the deformation before starting a new one.

◆ SetFFDTwist()

bool CSurfaceMovement::SetFFDTwist ( CGeometry *  geometry,
CConfig *  config,
CFreeFormDefBox *  FFDBox,
CFreeFormDefBox **  ResetFFDBox,
unsigned short  iDV,
bool  ResetDef 
) const

Set a twist angle deformation of the Free From box using the control point position.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.
[in]FFDBox- Array with all the free forms FFDBoxes of the computation.
[in]iDV- Index of the design variable.
[in]ResetDef- Reset the deformation before starting a new one.

◆ SetHicksHenne()

void CSurfaceMovement::SetHicksHenne ( CGeometry *  boundary,
CConfig *  config,
unsigned short  iDV,
bool  ResetDef 
)

Set a Hicks-Henne deformation bump functions on an airfoil.

Parameters
[in]boundary- Geometry of the boundary.
[in]config- Definition of the particular problem.
[in]iDV- Index of the design variable.
[in]ResetDef- Reset the deformation before starting a new one.

◆ SetHicksHenneCamber()

void CSurfaceMovement::SetHicksHenneCamber ( CGeometry *  boundary,
CConfig *  config 
)

Set a Hicks-Henne deformation bump function on the camberline of an airfoil.

Parameters
[in]boundary- Geometry of the boundary.
[in]config- Definition of the particular problem.

◆ SetNACA_4Digits()

void CSurfaceMovement::SetNACA_4Digits ( CGeometry *  boundary,
CConfig *  config 
)

Set a NACA 4 digits airfoil family for airfoil deformation.

Parameters
[in]boundary- Geometry of the boundary.
[in]config- Definition of the particular problem.

◆ SetParabolic()

void CSurfaceMovement::SetParabolic ( CGeometry *  boundary,
CConfig *  config 
)

Set a parabolic family for airfoil deformation.

Parameters
[in]boundary- Geometry of the boundary.
[in]config- Definition of the particular problem.

◆ SetParametricCoord()

void CSurfaceMovement::SetParametricCoord ( CGeometry *  geometry,
CConfig *  config,
CFreeFormDefBox *  FFDBox,
unsigned short  iFFDBox 
)

Compute the parametric coordinates of a grid point using a point inversion strategy in the free form FFDBox.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.
[in]FFDBox- Array with all the free forms FFDBoxes of the computation.

◆ SetParametricCoordCP()

void CSurfaceMovement::SetParametricCoordCP ( CGeometry *  geometry,
CConfig *  config,
CFreeFormDefBox *  FFDBoxParent,
CFreeFormDefBox *  FFDBoxChild 
)

Set the Parametric coordinates.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.
[in]FFDBoxParent- Array with parent FFDBoxes of the computation.
[in]FFDBoxChild- Array with child FFDBoxes of the computation.

◆ SetRotation()

void CSurfaceMovement::SetRotation ( CGeometry *  boundary,
CConfig *  config,
unsigned short  iDV,
bool  ResetDef 
)

Set a rotation for surface movement.

Parameters
[in]boundary- Geometry of the boundary.
[in]config- Definition of the particular problem.
[in]iDV- Index of the design variable.
[in]ResetDef- Reset the deformation before starting a new one.

◆ SetScale()

void CSurfaceMovement::SetScale ( CGeometry *  boundary,
CConfig *  config,
unsigned short  iDV,
bool  ResetDef 
)

Set a displacement for surface movement.

Parameters
[in]boundary- Geometry of the boundary.
[in]config- Definition of the particular problem.
[in]iDV- Index of the design variable.
[in]ResetDef- Reset the deformation before starting a new one.

◆ SetSurface_Bump()

void CSurfaceMovement::SetSurface_Bump ( CGeometry *  boundary,
CConfig *  config,
unsigned short  iDV,
bool  ResetDef 
)

Set a Hicks-Henne deformation bump functions on an airfoil.

Parameters
[in]boundary- Geometry of the boundary.
[in]config- Definition of the particular problem.
[in]iDV- Index of the design variable.
[in]ResetDef- Reset the deformation before starting a new one.

◆ SetSurface_Deformation()

vector< vector< su2double > > CSurfaceMovement::SetSurface_Deformation ( CGeometry *  geometry,
CConfig *  config 
)
overridevirtual

Set the surface/boundary deformation.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.
Returns
Total deformation applied, which may be less than target if intersection prevention is used.

Reimplemented from CGridMovement.

◆ SetSurface_Derivative()

void CSurfaceMovement::SetSurface_Derivative ( CGeometry *  geometry,
CConfig *  config 
)

Set derivatives of the surface/boundary deformation.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.

◆ SetTranslation()

void CSurfaceMovement::SetTranslation ( CGeometry *  boundary,
CConfig *  config,
unsigned short  iDV,
bool  ResetDef 
)

Set a displacement for surface movement.

Parameters
[in]boundary- Geometry of the boundary.
[in]config- Definition of the particular problem.
[in]iDV- Index of the design variable.
[in]ResetDef- Reset the deformation before starting a new one.

◆ UpdateParametricCoord()

void CSurfaceMovement::UpdateParametricCoord ( CGeometry *  geometry,
CConfig *  config,
CFreeFormDefBox *  FFDBox,
unsigned short  iFFDBox 
)

Update the parametric coordinates of a grid point using a point inversion strategy in the free form FFDBox.

Parameters
[in]geometry- Geometrical definition of the problem.
[in]config- Definition of the particular problem.
[in]FFDBox- Array with all the free forms FFDBoxes of the computation.
[in]iFFDBox- Index of FFD box.

◆ WriteFFDInfo()

void CSurfaceMovement::WriteFFDInfo ( CSurfaceMovement **  surface_movement,
CGeometry ****  geometry,
CConfig **  config 
)

Write the Free Form information in the SU2 file.

Parameters
[in]config- Definition of the particular problem.
[in]geometry- Geometrical definition of the problem.
[in]val_mesh_filename- Name of the grid output file.

Member Data Documentation

◆ FFDBox

CFreeFormDefBox** CSurfaceMovement::FFDBox
protected

Definition of the Free Form Deformation Box.

◆ FFDBoxDefinition

bool CSurfaceMovement::FFDBoxDefinition
protected

If the FFD FFDBox has been defined in the input file.

◆ GlobalCoordX

vector<su2double> CSurfaceMovement::GlobalCoordX[MAX_NUMBER_FFD]

◆ GlobalCoordY

vector<su2double> CSurfaceMovement::GlobalCoordY[MAX_NUMBER_FFD]

◆ GlobalCoordZ

vector<su2double> CSurfaceMovement::GlobalCoordZ[MAX_NUMBER_FFD]

◆ GlobalPoint

vector<unsigned long> CSurfaceMovement::GlobalPoint[MAX_NUMBER_FFD]

◆ GlobalTag

vector<string> CSurfaceMovement::GlobalTag[MAX_NUMBER_FFD]

◆ nFFDBox

unsigned short CSurfaceMovement::nFFDBox
protected

Number of FFD FFDBoxes.

◆ nLevel

unsigned short CSurfaceMovement::nLevel
protected

Level of the FFD FFDBoxes (parent/child).


The documentation for this class was generated from the following files: