Skip to content
Snippets Groups Projects
Commit e1c876f5 authored by Henry's avatar Henry
Browse files

multiphaseEulerFoam: Make the specification of the slamming damper optional

parent c0798213
Branches
Tags
No related merge requests found
......@@ -53,13 +53,16 @@
phi += fvc::interpolate(alpha)*phase.phi();
}
scalar slamDampCoeff(readScalar(fluid.lookup("slamDampCoeff")));
scalar slamDampCoeff
(
fluid.lookupOrDefault<scalar>("slamDampCoeff", 1)
);
dimensionedScalar maxSlamVelocity
(
"maxSlamVelocity",
dimVelocity,
fluid.lookup("maxSlamVelocity")
fluid.lookupOrDefault<scalar>("maxSlamVelocity", GREAT)
);
// dimensionedScalar pMin
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment