Commit 49ba6a8e authored by sergio's avatar sergio Committed by Andrew Heather
Browse files

ENH: Updating overRhoSimpleFoam and overSimpleFoam to use

oversetInterpolationSuppressed dict.
parent cb250f59
......@@ -62,22 +62,17 @@ dimensionedScalar initialMass = fvc::domainIntegrate(rho);
// Add solver-specific interpolations
{
dictionary oversetDict;
oversetDict.add("U", true);
oversetDict.add("p", true);
oversetDict.add("HbyA", true);
oversetDict.add("grad(p)", true);
oversetDict.add("rho", true);
const_cast<dictionary&>
(
mesh.schemesDict()
).add
(
"oversetInterpolationRequired",
oversetDict,
true
);
wordHashSet& nonInt =
const_cast<wordHashSet&>(Stencil::New(mesh).nonInterpolatedFields());
nonInt.insert("HbyA");
nonInt.insert("grad(p)");
nonInt.insert("surfaceIntegrate(phi)");
nonInt.insert("surfaceIntegrate(phiHbyA)");
nonInt.insert("cellMask");
nonInt.insert("cellDisplacement");
nonInt.insert("interpolatedCells");
nonInt.insert("cellInterpolationWeight");
}
// Mask field for zeroing out contributions on hole cells
......
......@@ -2,21 +2,17 @@
// Add solver-specific interpolations
{
dictionary oversetDict;
oversetDict.add("U", true);
oversetDict.add("p", true);
oversetDict.add("HbyA", true);
oversetDict.add("grad(p)", true);
wordHashSet& nonInt =
const_cast<wordHashSet&>(Stencil::New(mesh).nonInterpolatedFields());
const_cast<dictionary&>
(
mesh.schemesDict()
).add
(
"oversetInterpolationRequired",
oversetDict,
true
);
nonInt.insert("HbyA");
nonInt.insert("grad(p)");
nonInt.insert("surfaceIntegrate(phi)");
nonInt.insert("surfaceIntegrate(phiHbyA)");
nonInt.insert("cellMask");
nonInt.insert("cellDisplacement");
nonInt.insert("interpolatedCells");
nonInt.insert("cellInterpolationWeight");
}
// Mask field for zeroing out contributions on hole cells
......
......@@ -31,7 +31,7 @@ startTime 0;
stopAt endTime;
endTime 1.0;
endTime 0.5;
deltaT 2e-5;
......@@ -55,7 +55,7 @@ runTimeModifiable true;
adjustTimeStep true;
maxCo 0.2;
maxCo 1.2;
functions
{
......
......@@ -68,10 +68,6 @@ fluxRequired
oversetInterpolationSuppressed
{
grad(p);
surfaceIntegrate(phiHbyA);
//grad(pcorr);
//surfaceIntegrate(((rAUf*magSf)*snGradCorr(pcorr)));
}
// ************************************************************************* //
......@@ -61,11 +61,8 @@ oversetInterpolation
method inverseDistance;
}
oversetInterpolationRequired
oversetInterpolationSuppressed
{
epsilon;
k;
nut;
}
// ************************************************************************* //
......@@ -80,13 +80,11 @@ oversetInterpolation
searchBoxDivisions (100 100 1);
}
oversetInterpolationRequired
oversetInterpolationSuppressed
{
omega;
k;
nut;
}
wallDist
{
method Poisson;
......
Markdown is supported
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