diff --git a/src/Examples/flows/navierStokes.h b/src/Examples/flows/navierStokes.h index e9b09ac31d4fb521923fe0ea53652a898d7c02e6..18ca18996f79b87cd44d91589a1bbe212bafc663 100644 --- a/src/Examples/flows/navierStokes.h +++ b/src/Examples/flows/navierStokes.h @@ -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-" ); diff --git a/src/Examples/flows/navierStokesAUSMPlus.h b/src/Examples/flows/navierStokesAUSMPlus.h index a99e07894412690c92a83d2d00a619abd633e507..9330335413c93e40cc8ad1d1bceb5a8d5fe587a6 100644 --- a/src/Examples/flows/navierStokesAUSMPlus.h +++ b/src/Examples/flows/navierStokesAUSMPlus.h @@ -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-" ); diff --git a/src/Examples/flows/navierStokesLaxFriedrichs.h b/src/Examples/flows/navierStokesLaxFriedrichs.h index ec2207f1b6f0c3fb1d26e4ea637391f54fa2b645..6aabedd7d60af45685231fb18f7c5df9cd078ce8 100644 --- a/src/Examples/flows/navierStokesLaxFriedrichs.h +++ b/src/Examples/flows/navierStokesLaxFriedrichs.h @@ -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-" ); diff --git a/src/Examples/flows/navierStokesProblem.h b/src/Examples/flows/navierStokesProblem.h index 14ccdeb82f7444ac9b955c1f1093e47e3f3d1b35..7fed439bf811ffdc5bffe13c321eecc939654cd9 100644 --- a/src/Examples/flows/navierStokesProblem.h +++ b/src/Examples/flows/navierStokesProblem.h @@ -126,7 +126,10 @@ class navierStokesProblem: RealType cavitySpeed; RealType speedIncrementUntil; RealType finalSpeed; - RealType startSpeed; + RealType startSpeed; + RealType speedIncrementUntilHThrottle; + RealType finalSpeedHThrottle; + RealType startSpeedHThrottle; }; } // namespace TNL diff --git a/src/Examples/flows/navierStokesProblem_impl.h b/src/Examples/flows/navierStokesProblem_impl.h index 48b8ce5cb9ffa7f29017716f3d6a6b5363e7bc84..503802aeec1e7bf3fc7d4319947f9639f211273c 100644 --- a/src/Examples/flows/navierStokesProblem_impl.h +++ b/src/Examples/flows/navierStokesProblem_impl.h @@ -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 */ diff --git a/src/Examples/flows/navierStokesStegerWarming.h b/src/Examples/flows/navierStokesStegerWarming.h index 230f89ed10d5c2bd09d729bf73ccf4b4d37b3a5d..f7a1df06a78c4665aa3cce6ca13544c20ad4db0e 100644 --- a/src/Examples/flows/navierStokesStegerWarming.h +++ b/src/Examples/flows/navierStokesStegerWarming.h @@ -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; StegerWarming< Mesh >::configSetup( config, "inviscid-operators-" ); diff --git a/src/Examples/flows/navierStokesVanLeer.h b/src/Examples/flows/navierStokesVanLeer.h index 379be8d3fb1427c9c1172a9392c11408c403aa38..ed6c73714e7f55874620f1fe1f352437a8ba7d35 100644 --- a/src/Examples/flows/navierStokesVanLeer.h +++ b/src/Examples/flows/navierStokesVanLeer.h @@ -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; VanLeer< Mesh >::configSetup( config, "inviscid-operators-" );