Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
960fe5f
Added multizone inheritance for config options
talbring Jun 2, 2019
4e6689c
Removed MARKER_INTERFACE. Type of interface is now automatically dete…
talbring Jun 2, 2019
48385c1
Changed the grid movement options.
talbring Jun 2, 2019
2106235
added zone information
talbring Jun 2, 2019
1acd25a
Added routine to update boundaries
talbring Jun 2, 2019
4227aa8
Removed MatchInterface routine
talbring Jun 2, 2019
07a1d81
Adapted test cases
talbring Jun 2, 2019
6b5d49d
Added missing subconfig files for MZ cases
talbring Jun 3, 2019
1ee2614
Enabled travis
talbring Jun 3, 2019
3fdecce
Disabled mz driver for now
talbring Jun 3, 2019
2900320
Small fixes to test case config files
talbring Jun 3, 2019
0573ea2
Small fix
talbring Jun 9, 2019
2d9a31a
Merge branch 'feature_mz_config' of https://github.com/su2code/SU2 in…
talbring Jun 9, 2019
44c1ccc
Merge branch 'develop' of github.com:su2code/SU2 into feature_mz_config
talbring Jun 12, 2019
c524a15
reverted input preprocessing routine
talbring Jun 12, 2019
f7c4927
reverting grid movement to older implementation
talbring Jun 12, 2019
a01329e
Removing call to SetTransferTypes for now
talbring Jun 12, 2019
6723d7a
Reverted automatic deduction of interfaces
talbring Jun 17, 2019
54abdaf
Added missing files
talbring Jun 17, 2019
ecde381
Added temporary settings in config preprocessing
talbring Jun 19, 2019
47841c4
Small fixes
talbring Jun 19, 2019
1fdb403
Changed multizone solver to JACOBI for test cases
talbring Jun 19, 2019
62e6edb
Merge remote-tracking branch 'origin/develop' into feature_mz_config
talbring Jun 19, 2019
83b4727
Update .travis.yml
talbring Jun 19, 2019
836180f
Changed grid movement config routines to return value instead of pointer
talbring Jun 25, 2019
488167a
Added/modified comments
talbring Jun 25, 2019
549ee9c
Small change to test case
talbring Jun 25, 2019
12919c5
Small change to RBF FSI test case
talbring Jun 25, 2019
97de446
Small change to py wrapper test case
talbring Jun 25, 2019
958a40f
Added temporary fix for disc. adj. FSI cases
talbring Jun 26, 2019
e2c1bb6
Fixed some test cases
talbring Jun 26, 2019
129a5a4
Testing travis
talbring Jun 26, 2019
877c96e
Merge branch 'develop' into feature_mz_config
talbring Jun 26, 2019
bbf2258
Small fixes for FSI cases
talbring Jun 27, 2019
1204794
Merge branch 'feature_mz_config' of github.com:su2code/SU2 into featu…
talbring Jun 27, 2019
c346d99
Merge branch 'develop' into feature_mz_config
talbring Jun 27, 2019
297dd05
Fixed driver init for turbo adj
talbring Jun 28, 2019
48ce1c3
Fixed test cases
talbring Jun 28, 2019
fd9a97c
Merge branch 'feature_mz_config' of github.com:su2code/SU2 into featu…
talbring Jun 28, 2019
1cf34c4
Merge branch 'develop' into feature_mz_config
talbring Jun 28, 2019
81dd5ad
updated some comments
talbring Jun 28, 2019
884cb5e
Fixed parenthesis
talbring Jun 28, 2019
233f699
Merge branch 'feature_mz_config' of github.com:su2code/SU2 into featu…
talbring Jun 28, 2019
dbdd66f
Udpated config_template.cfg
talbring Jun 28, 2019
d7161aa
Merge branch 'develop' into feature_mz_config
talbring Jul 8, 2019
5190b59
Merge branch 'develop' into feature_mz_config
talbring Jul 14, 2019
b48bd57
Merge branch 'develop' into feature_mz_config
talbring Jul 17, 2019
8340853
Heat flux ref and warning clean up.
economon Jul 17, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
399 changes: 190 additions & 209 deletions Common/include/config_structure.hpp

Large diffs are not rendered by default.

80 changes: 34 additions & 46 deletions Common/include/config_structure.inl
Original file line number Diff line number Diff line change
Expand Up @@ -937,71 +937,59 @@ inline void CConfig::SetMu_PolyCoeffND(su2double val_coeff, unsigned short val_i

inline void CConfig::SetKt_PolyCoeffND(su2double val_coeff, unsigned short val_index) { KtPolyCoefficientsND[val_index] = val_coeff; }

inline unsigned short CConfig::GetKind_GridMovement(unsigned short val_iZone) { return Kind_GridMovement[val_iZone]; }
inline unsigned short CConfig::GetKind_GridMovement() { return Kind_GridMovement; }

inline unsigned short CConfig::GetKind_GridMovement(void) { return Kind_GridMovement[0]; }
inline void CConfig::SetKind_GridMovement(unsigned short motion_Type) { Kind_GridMovement = motion_Type; }

inline void CConfig::SetKind_GridMovement(unsigned short val_iZone, unsigned short motion_Type) { Kind_GridMovement[val_iZone] = motion_Type; }
inline su2double CConfig::GetMotion_Origin(unsigned short iDim){return Motion_Origin[iDim];}

inline su2double CConfig::GetMach_Motion(void) { return Mach_Motion; }

inline su2double CConfig::GetMotion_Origin_X(unsigned short val_iZone) { return Motion_Origin_X[val_iZone]; }

inline su2double CConfig::GetMotion_Origin_Y(unsigned short val_iZone) { return Motion_Origin_Y[val_iZone]; }

inline su2double CConfig::GetMotion_Origin_Z(unsigned short val_iZone) { return Motion_Origin_Z[val_iZone]; }

inline void CConfig::SetMotion_Origin_X(unsigned short val_iZone, su2double val_origin) { Motion_Origin_X[val_iZone] = val_origin; }

inline void CConfig::SetMotion_Origin_Y(unsigned short val_iZone, su2double val_origin) { Motion_Origin_Y[val_iZone] = val_origin; }

inline void CConfig::SetMotion_Origin_Z(unsigned short val_iZone, su2double val_origin) { Motion_Origin_Z[val_iZone] = val_origin; }

inline su2double CConfig::GetTranslation_Rate_X(unsigned short val_iZone) { return Translation_Rate_X[val_iZone]; }
inline su2double CConfig::GetMarkerMotion_Origin(unsigned short iMarkerMoving, unsigned short iDim){return MarkerMotion_Origin[3*iMarkerMoving + iDim];}

inline su2double CConfig::GetTranslation_Rate_Y(unsigned short val_iZone) { return Translation_Rate_Y[val_iZone]; }

inline su2double CConfig::GetTranslation_Rate_Z(unsigned short val_iZone) { return Translation_Rate_Z[val_iZone]; }

inline su2double CConfig::GetRotation_Rate_X(unsigned short val_iZone) { return Rotation_Rate_X[val_iZone]; }

inline su2double CConfig::GetRotation_Rate_Y(unsigned short val_iZone) { return Rotation_Rate_Y[val_iZone]; }
inline void CConfig::SetMarkerMotion_Origin(su2double* val, unsigned short iMarkerMoving){
for (unsigned short iDim = 0; iDim < 3; iDim++){
MarkerMotion_Origin[3*iMarkerMoving + iDim] = val[iDim];
}
}

inline su2double CConfig::GetRotation_Rate_Z(unsigned short val_iZone) { return Rotation_Rate_Z[val_iZone]; }
inline void CConfig::SetMotion_Origin(su2double* val){
for (unsigned short iDim = 0; iDim < 3; iDim++){
Motion_Origin[iDim] = val[iDim];
}
}

inline su2double CConfig::GetFinalRotation_Rate_Z(unsigned short val_iZone) { return FinalRotation_Rate_Z[val_iZone]; }
inline su2double CConfig::GetTranslation_Rate(unsigned short iDim){return Translation_Rate[iDim];}

inline void CConfig::SetRotation_Rate_Z(su2double newRotation_Rate_Z, unsigned short val_iZone) { Rotation_Rate_Z[val_iZone] = newRotation_Rate_Z; }
inline su2double CConfig::GetMarkerTranslationRate(unsigned short iMarkerMoving, unsigned short iDim){return MarkerTranslation_Rate[3*iMarkerMoving + iDim];}

inline su2double CConfig::GetPitching_Omega_X(unsigned short val_iZone) { return Pitching_Omega_X[val_iZone]; }
inline su2double CConfig::GetRotation_Rate(unsigned short iDim){return Rotation_Rate[iDim];}

inline su2double CConfig::GetPitching_Omega_Y(unsigned short val_iZone) { return Pitching_Omega_Y[val_iZone]; }
inline void CConfig::SetRotation_Rate(unsigned short iDim, su2double val){Rotation_Rate[iDim] = val;}

inline su2double CConfig::GetPitching_Omega_Z(unsigned short val_iZone) { return Pitching_Omega_Z[val_iZone]; }
inline su2double CConfig::GetFinalRotation_Rate_Z(){return FinalRotation_Rate_Z;}

inline su2double CConfig::GetPitching_Ampl_X(unsigned short val_iZone) { return Pitching_Ampl_X[val_iZone]; }
inline su2double CConfig::GetMarkerRotationRate(unsigned short iMarkerMoving, unsigned short iDim){return MarkerRotation_Rate[3*iMarkerMoving + iDim];}

inline su2double CConfig::GetPitching_Ampl_Y(unsigned short val_iZone) { return Pitching_Ampl_Y[val_iZone]; }
inline su2double CConfig::GetPitching_Omega(unsigned short iDim){return Pitching_Omega[iDim];}

inline su2double CConfig::GetPitching_Ampl_Z(unsigned short val_iZone) { return Pitching_Ampl_Z[val_iZone]; }
inline su2double CConfig::GetMarkerPitching_Omega(unsigned short iMarkerMoving, unsigned short iDim){return MarkerPitching_Omega[3*iMarkerMoving + iDim];}

inline su2double CConfig::GetPitching_Phase_X(unsigned short val_iZone) { return Pitching_Phase_X[val_iZone]; }
inline su2double CConfig::GetPitching_Ampl(unsigned short iDim){return Pitching_Ampl[iDim];}

inline su2double CConfig::GetPitching_Phase_Y(unsigned short val_iZone) { return Pitching_Phase_Y[val_iZone]; }
inline su2double CConfig::GetMarkerPitching_Ampl(unsigned short iMarkerMoving, unsigned short iDim){return MarkerPitching_Ampl[3*iMarkerMoving + iDim];}

inline su2double CConfig::GetPitching_Phase_Z(unsigned short val_iZone) { return Pitching_Phase_Z[val_iZone]; }
inline su2double CConfig::GetPitching_Phase(unsigned short iDim){return Pitching_Phase[iDim];}

inline su2double CConfig::GetPlunging_Omega_X(unsigned short val_iZone) { return Plunging_Omega_X[val_iZone]; }
inline su2double CConfig::GetMarkerPitching_Phase(unsigned short iMarkerMoving, unsigned short iDim){return MarkerPitching_Phase[3*iMarkerMoving + iDim];}

inline su2double CConfig::GetPlunging_Omega_Y(unsigned short val_iZone) { return Plunging_Omega_Y[val_iZone]; }
inline su2double CConfig::GetPlunging_Omega(unsigned short iDim){return Plunging_Omega[iDim];}

inline su2double CConfig::GetPlunging_Omega_Z(unsigned short val_iZone) { return Plunging_Omega_Z[val_iZone]; }
inline su2double CConfig::GetMarkerPlunging_Omega(unsigned short iMarkerMoving, unsigned short iDim){return MarkerPlunging_Omega[3*iMarkerMoving + iDim];}

inline su2double CConfig::GetPlunging_Ampl_X(unsigned short val_iZone) { return Plunging_Ampl_X[val_iZone]; }
inline su2double CConfig::GetPlunging_Ampl(unsigned short iDim){return Plunging_Ampl[iDim];}

inline su2double CConfig::GetPlunging_Ampl_Y(unsigned short val_iZone) { return Plunging_Ampl_Y[val_iZone]; }
inline su2double CConfig::GetMarkerPlunging_Ampl(unsigned short iMarkerMoving, unsigned short iDim){return MarkerPlunging_Ampl[3*iMarkerMoving + iDim];}

inline su2double CConfig::GetPlunging_Ampl_Z(unsigned short val_iZone) { return Plunging_Ampl_Z[val_iZone]; }
inline su2double CConfig::GetMach_Motion(void) { return Mach_Motion; }

inline su2double* CConfig::GetOmega_HB(void) { return Omega_HB; }

Expand Down Expand Up @@ -1438,8 +1426,6 @@ inline unsigned short CConfig::GetnMarker_EngineInflow(void) { return nMarker_En

inline unsigned short CConfig::GetnMarker_EngineExhaust(void) { return nMarker_EngineExhaust; }

inline unsigned short CConfig::GetnMarker_InterfaceBound(void) { return nMarker_InterfaceBound; }

inline unsigned short CConfig::GetnMarker_Fluid_InterfaceBound(void) { return nMarker_Fluid_InterfaceBound; }

inline unsigned short CConfig::GetnMarker_Monitoring(void) { return nMarker_Monitoring; }
Expand Down Expand Up @@ -1614,7 +1600,9 @@ inline su2double CConfig::GetFixAzimuthalLine(void) { return FixAzimuthalLine; }

inline su2double CConfig::GetCFLRedCoeff_Turb(void) { return CFLRedCoeff_Turb; }

inline bool CConfig::GetGrid_Movement(void) { return Grid_Movement; }
inline bool CConfig::GetGrid_Movement(void) { return (Kind_GridMovement != NO_MOVEMENT) || ((nKind_SurfaceMovement > 0) && !GetSurface_Movement(FLUID_STRUCTURE_STATIC)); }

inline unsigned short CConfig::GetKind_SurfaceMovement(unsigned short iMarkerMoving){return Kind_SurfaceMovement[iMarkerMoving];}

inline bool CConfig::GetRotating_Frame(void) { return Rotating_Frame; }

Expand Down
6 changes: 0 additions & 6 deletions Common/include/geometry_structure.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2085,12 +2085,6 @@ void UpdateTurboVertex(CConfig *config,unsigned short val_iZone, unsigned short
* \param[in] config - Definition of the particular problem.
*/
void MatchActuator_Disk(CConfig *config);

/*!
* \brief Mach the interface boundary condition.
* \param[in] config - Definition of the particular problem.
*/
void MatchInterface(CConfig *config);

/*!
* \brief Mach the periodic boundary conditions.
Expand Down
7 changes: 4 additions & 3 deletions Common/include/grid_movement_structure.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1158,8 +1158,9 @@ class CVolumetricMovement : public CGridMovement {
/*!
* \brief Check for negative volumes (all elements) after performing grid deformation.
* \param[in] geometry - Geometrical definition of the problem.
* \param[in] Screen_Output - determines if text is written to screen
*/
void ComputeDeforming_Element_Volume(CGeometry *geometry, su2double &MinVolume, su2double &MaxVolume);
void ComputeDeforming_Element_Volume(CGeometry *geometry, su2double &MinVolume, su2double &MaxVolume, bool Screen_Output);

/*!
* \brief Compute the minimum distance to the nearest solid surface.
Expand Down Expand Up @@ -1258,7 +1259,7 @@ class CVolumetricMovement : public CGridMovement {
* \param[in] UpdateGeo - Update geometry.
* \param[in] Derivative - Compute the derivative (disabled by default). Does not actually deform the grid if enabled.
*/
virtual void SetVolume_Deformation_Elas(CGeometry *geometry, CConfig *config, bool UpdateGeo, bool Derivative = false);
virtual void SetVolume_Deformation_Elas(CGeometry *geometry, CConfig *config, bool UpdateGeo, bool screen_output, bool Derivative = false);

/*!
* \brief Set the derivatives of the boundary nodes.
Expand Down Expand Up @@ -1383,7 +1384,7 @@ class CElasticityMovement : public CVolumetricMovement {
* \param[in] UpdateGeo - Update geometry.
* \param[in] Derivative - Compute the derivative (disabled by default). Does not actually deform the grid if enabled.
*/
void SetVolume_Deformation_Elas(CGeometry *geometry, CConfig *config, bool UpdateGeo, bool Derivative = false);
void SetVolume_Deformation_Elas(CGeometry *geometry, CConfig *config, bool UpdateGeo, bool screen_output, bool Derivative = false);

/*!
* \brief Update the value of the coordinates after the grid movement.
Expand Down
2 changes: 1 addition & 1 deletion Common/include/grid_movement_structure.inl
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ inline void CVolumetricMovement::Set_nIterMesh(unsigned long val_nIterMesh) { nI

inline unsigned long CVolumetricMovement::Get_nIterMesh() { return nIterMesh; }

inline void CVolumetricMovement::SetVolume_Deformation_Elas(CGeometry *geometry, CConfig *config, bool UpdateGeo, bool Derivative) { }
inline void CVolumetricMovement::SetVolume_Deformation_Elas(CGeometry *geometry, CConfig *config, bool UpdateGeo, bool screen_output, bool Derivative) { }

inline void CVolumetricMovement::Boundary_Dependencies(CGeometry **geometry, CConfig *config) { }

Expand Down
2 changes: 1 addition & 1 deletion Common/include/linear_algebra/CSysMatrix.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ class CSysMatrix {
template<class OtherType>
inline void SetBlock(unsigned long block_i, unsigned long block_j, OtherType *val_block) {

unsigned long iVar, jVar, index;
unsigned long iVar, index;

for (index = row_ptr[block_i]; index < row_ptr[block_i+1]; index++) {
if (col_ind[index] == block_j) {
Expand Down
Loading