Loading src/Examples/flows/navierStokes.h +3 −0 Original line number Diff line number Diff line Loading @@ -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-" ); Loading src/Examples/flows/navierStokesAUSMPlus.h +3 −0 Original line number Diff line number Diff line Loading @@ -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-" ); Loading src/Examples/flows/navierStokesLaxFriedrichs.h +3 −0 Original line number Diff line number Diff line Loading @@ -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-" ); Loading src/Examples/flows/navierStokesProblem.h +4 −1 Original line number Diff line number Diff line Loading @@ -127,6 +127,9 @@ class navierStokesProblem: RealType speedIncrementUntil; RealType finalSpeed; RealType startSpeed; RealType speedIncrementUntilHThrottle; RealType finalSpeedHThrottle; RealType startSpeedHThrottle; }; } // namespace TNL Loading src/Examples/flows/navierStokesProblem_impl.h +5 −1 Original line number Diff line number Diff line Loading @@ -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() ); Loading Loading @@ -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 Loading
src/Examples/flows/navierStokes.h +3 −0 Original line number Diff line number Diff line Loading @@ -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-" ); Loading
src/Examples/flows/navierStokesAUSMPlus.h +3 −0 Original line number Diff line number Diff line Loading @@ -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-" ); Loading
src/Examples/flows/navierStokesLaxFriedrichs.h +3 −0 Original line number Diff line number Diff line Loading @@ -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-" ); Loading
src/Examples/flows/navierStokesProblem.h +4 −1 Original line number Diff line number Diff line Loading @@ -127,6 +127,9 @@ class navierStokesProblem: RealType speedIncrementUntil; RealType finalSpeed; RealType startSpeed; RealType speedIncrementUntilHThrottle; RealType finalSpeedHThrottle; RealType startSpeedHThrottle; }; } // namespace TNL Loading
src/Examples/flows/navierStokesProblem_impl.h +5 −1 Original line number Diff line number Diff line Loading @@ -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() ); Loading Loading @@ -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