Skip to content

Commit d355770

Browse files
Merge branch 'feature_PINN' of https://github.com/su2code/SU2 into feature_PINN
2 parents 1a0e3fb + ac83187 commit d355770

File tree

3 files changed

+17
-31
lines changed

3 files changed

+17
-31
lines changed

Common/include/CConfig.hpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -536,14 +536,7 @@ class CConfig {
536536
Kind_TimeStep_Heat, /*!< \brief Time stepping method for the (fvm) heat equation. */
537537
n_Datadriven_files;
538538

539-
DataDrivenFluid_ParsedOptions datadriven_ParsedOptions;
540-
//ENUM_DATADRIVEN_METHOD Kind_DataDriven_Method; /*!< \brief Method used for datset regression in data-driven fluid models. */
541-
542-
//su2double DataDriven_Relaxation_Factor; /*!< \brief Relaxation factor for Newton solvers in data-driven fluid models. */
543-
// su2double DataDriven_rho_init{-1.0}, /*!< \brief Optional initial density value for Newton solver in data-driven fluid model.*/
544-
// DataDriven_e_init{-1.0}; /*!< \brief Optional initial static energy value for Newton solver in data-driven fluid model.*/
545-
546-
//bool UsePINN = false; /*!< \brief Use physics-informed method for data-driven fluid modeling. */
539+
DataDrivenFluid_ParsedOptions datadriven_ParsedOptions; /*!< \brief Options for data-driven fluid analysis. */
547540

548541
STRUCT_TIME_INT Kind_TimeIntScheme_FEA; /*!< \brief Time integration for the FEA equations. */
549542
STRUCT_SPACE_ITE Kind_SpaceIteScheme_FEA; /*!< \brief Iterative scheme for nonlinear structural analysis. */

Common/include/geometry/CGeometry.hpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -954,19 +954,6 @@ class CGeometry {
954954
*/
955955
void SetCustomBoundary(CConfig* config);
956956

957-
/*!
958-
* \brief General interface for setting the velocity in the geometry during motion ramps
959-
* \param[in] config - config class
960-
* \param[in] ramp_flag - flag for type of ramp
961-
* \param[in] print - bool to print update to screen
962-
*/
963-
void SetVelocity(CConfig* config, bool print) {
964-
if (config->GetKind_GridMovement() == ENUM_GRIDMOVEMENT::ROTATING_FRAME)
965-
SetRotationalVelocity(config, print);
966-
else if (config->GetKind_GridMovement() == ENUM_GRIDMOVEMENT::STEADY_TRANSLATION)
967-
SetTranslationalVelocity(config, print);
968-
};
969-
970957
/*!
971958
* \brief Set cartesian grid velocity based on rotational speed and axis.
972959
* \param[in] config - Definition of the particular problem.

config_template.cfg

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,14 @@ FILENAMES_INTERPOLATOR= (MLP_1.mlp, MLP_2.mlp, MLP_3.mlp)
441441
% Relaxation factor for the Newton solvers in the data-driven fluid model
442442
DATADRIVEN_NEWTON_RELAXATION= 0.8
443443

444-
%
444+
% Use physics-informed neural network for calculation of the fluid caloric properties.
445+
USE_PINN= YES
446+
447+
% Optional initial guess for fluid density and static energy in data-driven fluid analysis.
448+
DATADRIVEN_INITIAL_DENSITY= -1
449+
DATADRIVEN_INITIAL_ENERGY= -1
450+
451+
445452
% Specify if there is ionization
446453
IONIZATION= NO
447454
%
@@ -735,20 +742,19 @@ MIXINGPLANE_INTERFACE_KIND= LINEAR_INTERPOLATION
735742
% Specify option for turbulent mixing-plane (YES, NO) default NO
736743
TURBULENT_MIXINGPLANE= YES
737744
%
738-
% Specify ramp option for Outlet Giles value (YES, NO) default NO
739-
RAMP_OUTLET= NO
745+
% Specify ramp option for Outlet pressure (YES, NO) default NO
746+
RAMP_OUTLET_PRESSURE= NO
740747
%
741-
% Parameters of the outlet Giles ramp (starting outlet value,
748+
% Parameters of the outlet pressure ramp (starting outlet pressure,
742749
% updating-iteration-frequency, total number of iteration for the ramp)
743-
RAMP_OUTLET_COEFF= (400000.0, 10.0, 500)
750+
RAMP_OUTLET_PRESSURE_COEFF= (400000.0, 10.0, 500)
744751
%
745-
% Specify ramp option for frame of motion (YES, NO) default NO
746-
RAMP_MOTION_FRAME= YES
752+
% Specify ramp option for rotating frame (YES, NO) default NO
753+
RAMP_ROTATING_FRAME= YES
747754
%
748-
% Parameters of the frame of motion ramp (starting frame of motion speed,
755+
% Parameters of the rotating frame ramp (starting rotational speed,
749756
% updating-iteration-frequency, total number of iteration for the ramp)
750-
RAMP_MOTION_FRAME_COEFF= (0.0, 39.0, 500)
751-
%
757+
RAMP_ROTATING_FRAME_COEFF= (0.0, 39.0, 500)
752758
%
753759
% Specify Kind of average process for linearizing the Navier-Stokes
754760
% equation at inflow and outflow BCs included at the mixing-plane interface

0 commit comments

Comments
 (0)