Skip to content
Snippets Groups Projects
Commit 53c91b46 authored by Henry's avatar Henry
Browse files
parents a7af276f f715e514
Branches
Tags
No related merge requests found
......@@ -35,17 +35,18 @@ Description
int main(int argc, char *argv[])
{
#include "setRootCase.H"
# include "setRootCase.H"
#include "createTime.H"
#include "createMesh.H"
# include "createTime.H"
# include "createMesh.H"
volScalarField fx(pow(mesh.C().component(vector::X), 2));
volScalarField fx(pow(mesh.C().component(vector::X), 1));
fx.write();
volScalarField gradx4(fvc::grad(fx)().component(vector::X));
gradx4.write();
Info<< fvc::snGrad(fx) - (mesh.Sf()/mesh.magSf())().component(vector::X) << endl;
//volVectorField curlC(fvc::curl(1.0*mesh.C()));
//curlC.write();
......
......@@ -98,21 +98,8 @@ Foam::fv::correctedSnGrad<Type>::correction
ssf.replace
(
cmpt,
mesh.nonOrthCorrectionVectors()
& linear
<
typename
outerProduct<vector, typename pTraits<Type>::cmptType>::type
>(mesh).interpolate
(
gradScheme<typename pTraits<Type>::cmptType>::New
(
mesh,
mesh.gradScheme("grad(" + ssf.name() + ')')
)()
//gaussGrad<typename pTraits<Type>::cmptType>(mesh)
.grad(vf.component(cmpt))
)
correctedSnGrad<typename pTraits<Type>::cmptType>(mesh)
.fullGradCorrection(vf.component(cmpt))
);
}
......
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