Skip to content
Snippets Groups Projects
Commit 9ea61d57 authored by Marco Agnese's avatar Marco Agnese Committed by Marco Agnese
Browse files

add density to Navier-Stokes expanding bubble

parent 2e0bffa5
No related branches found
No related tags found
No related merge requests found
......@@ -782,6 +782,7 @@ class NavierStokesExpandingBubbleProblem:public ExpandingBubbleProblem<FluidStat
using BaseType::velocityRHS;
using BaseType::alpha_;
using BaseType::worlddim;
using BaseType::rho;
NavierStokesExpandingBubbleProblem(FluidStateType& fluidState):
BaseType(fluidState)
......@@ -789,7 +790,7 @@ class NavierStokesExpandingBubbleProblem:public ExpandingBubbleProblem<FluidStat
velocityRHS().function()=[&](const VelocityDomainType& x,double ,const EntityType& entity)
{
auto value(x);
value*=-std::pow(alpha_,2)*(worlddim-1);
value*=-std::pow(alpha_,2)*(worlddim-1)*rho(entity);
value/=std::pow(x.two_norm(),2*worlddim);
return value;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment