Commit 115b1ccb authored by Jan Schäfer's avatar Jan Schäfer Committed by Jakub Klinkovský
Browse files

splitted velocities for horizontal and vertical throttles

parent 11efe6c0
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -59,6 +59,9 @@ template< typename ConfigTag >class navierStokesConfig
         config.addEntry< double >( "speed-increment-until", "This sets time until input speed will rose", -0.1 );
         config.addEntry< double >( "start-speed", "This sets throttle speed at begining", 0.0 );
         config.addEntry< double >( "final-speed", "This sets speed at destined time", 0.0 );
         config.addEntry< double >( "speed-increment-until-h-throttle", "This sets time until input speed will rose for horizontal throttle", -0.1 );
         config.addEntry< double >( "start-speed-h-throttle", "This sets throttle speed at begining for horizontal throttle", 0.0 );
         config.addEntry< double >( "final-speed-h-throttle", "This sets speed at destined time for horizontal throttle", 0.0 );
         config.addEntry< double >( "cavity-speed", "This sets speed parameter of cavity", 0.0 );
         typedef Meshes::Grid< 3 > Mesh;
         LaxFridrichs< Mesh >::configSetup( config, "inviscid-operators-" );
+3 −0
Original line number Diff line number Diff line
@@ -52,6 +52,9 @@ template< typename ConfigTag >class navierStokesConfig
         config.addEntry< double >( "speed-increment-until", "This sets time until input speed will rose", -0.1 );
         config.addEntry< double >( "start-speed", "This sets throttle speed at begining", 0.0 );
         config.addEntry< double >( "final-speed", "This sets speed at destined time", 0.0 );
         config.addEntry< double >( "speed-increment-until-h-throttle", "This sets time until input speed will rose for horizontal throttle", -0.1 );
         config.addEntry< double >( "start-speed-h-throttle", "This sets throttle speed at begining for horizontal throttle", 0.0 );
         config.addEntry< double >( "final-speed-h-throttle", "This sets speed at destined time for horizontal throttle", 0.0 );
         config.addEntry< double >( "cavity-speed", "This sets speed parameter of cavity", 0.0 );
         typedef Meshes::Grid< 3 > Mesh;
         AUSMPlus< Mesh >::configSetup( config, "inviscid-operators-" );
+3 −0
Original line number Diff line number Diff line
@@ -52,6 +52,9 @@ template< typename ConfigTag >class navierStokesConfig
         config.addEntry< double >( "speed-increment-until", "This sets time until input speed will rose", -0.1 );
         config.addEntry< double >( "start-speed", "This sets throttle speed at begining", 0.0 );
         config.addEntry< double >( "final-speed", "This sets speed at destined time", 0.0 );
         config.addEntry< double >( "speed-increment-until-h-throttle", "This sets time until input speed will rose for horizontal throttle", -0.1 );
         config.addEntry< double >( "start-speed-h-throttle", "This sets throttle speed at begining for horizontal throttle", 0.0 );
         config.addEntry< double >( "final-speed-h-throttle", "This sets speed at destined time for horizontal throttle", 0.0 );
         config.addEntry< double >( "cavity-speed", "This sets speed parameter of cavity", 0.0 );
         typedef Meshes::Grid< 3 > Mesh;
         LaxFridrichs< Mesh >::configSetup( config, "inviscid-operators-" );
+4 −1
Original line number Diff line number Diff line
@@ -127,6 +127,9 @@ class navierStokesProblem:
      RealType speedIncrementUntil;
      RealType finalSpeed;
      RealType startSpeed;
      RealType speedIncrementUntilHThrottle;
      RealType finalSpeedHThrottle;
      RealType startSpeedHThrottle;           
};

} // namespace TNL
+5 −1
Original line number Diff line number Diff line
@@ -80,6 +80,10 @@ setup( const Config::ParameterContainer& parameters,
   this->gamma = parameters.getParameter< double >( "gamma" );
   this->startSpeed = parameters.getParameter< double >( "start-speed" );
   this->finalSpeed = parameters.getParameter< double >( "final-speed" );
   this->speedIncrementUntil = parameters.getParameter< RealType >( "speed-increment-until" );
   this->startSpeedHThrottle = parameters.getParameter< double >( "start-speed-h-throttle" );
   this->finalSpeedHThrottle = parameters.getParameter< double >( "final-speed-h-throttle" );
   this->speedIncrementUntilHThrottle = parameters.getParameter< RealType >( "speed-increment-until-h-throttle" );
   velocity->setMesh( this->getMesh() );
   pressure->setMesh( this->getMesh() );

@@ -354,7 +358,7 @@ applyBoundaryConditions( const RealType& time,
    this->boundaryConditionPointer->setGamma(this->gamma);
    this->boundaryConditionPointer->setPressure(this->pressure);
    this->boundaryConditionPointer->setVerticalThrottleSpeed( startSpeed, finalSpeed, time, speedIncrementUntil );
    this->boundaryConditionPointer->setHorizontalThrottleSpeed( startSpeed, finalSpeed, time, speedIncrementUntil );
    this->boundaryConditionPointer->setHorizontalThrottleSpeed( startSpeedHThrottle, finalSpeedHThrottle, time, speedIncrementUntilHThrottle );
    /****
     * Bind DOFs
     */
Loading