powerinjection problem: make it work for 2D and 3D grids

and some minor variable renames in the base gradient calculator so
that a delta won't be mistaken for a derivative...
This commit is contained in:
Andreas Lauser
2014-09-22 18:51:33 +02:00
parent 1c60dd2ec9
commit e9ef352d80

View File

@@ -325,10 +325,11 @@ public:
// impose a forced flow boundary
values.setMassRate(massRate);
}
else {
else if (onRightBoundary_(pos))
// free flow boundary with initial condition on the right
values.setFreeFlow(context, spaceIdx, timeIdx, initialFluidState_);
}
else
values.setNoFlow();
}
//! \}