mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'master' of ssh://homedm/home/dm2/henry/OpenFOAM/OpenFOAM-dev/
This commit is contained in:
@ -35,17 +35,18 @@ Description
|
|||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
#include "setRootCase.H"
|
||||||
|
|
||||||
# include "setRootCase.H"
|
#include "createTime.H"
|
||||||
|
#include "createMesh.H"
|
||||||
|
|
||||||
# include "createTime.H"
|
volScalarField fx(pow(mesh.C().component(vector::X), 1));
|
||||||
# include "createMesh.H"
|
|
||||||
|
|
||||||
volScalarField fx(pow(mesh.C().component(vector::X), 2));
|
|
||||||
fx.write();
|
fx.write();
|
||||||
volScalarField gradx4(fvc::grad(fx)().component(vector::X));
|
volScalarField gradx4(fvc::grad(fx)().component(vector::X));
|
||||||
gradx4.write();
|
gradx4.write();
|
||||||
|
|
||||||
|
Info<< fvc::snGrad(fx) - (mesh.Sf()/mesh.magSf())().component(vector::X) << endl;
|
||||||
|
|
||||||
//volVectorField curlC(fvc::curl(1.0*mesh.C()));
|
//volVectorField curlC(fvc::curl(1.0*mesh.C()));
|
||||||
//curlC.write();
|
//curlC.write();
|
||||||
|
|
||||||
|
|||||||
@ -98,21 +98,8 @@ Foam::fv::correctedSnGrad<Type>::correction
|
|||||||
ssf.replace
|
ssf.replace
|
||||||
(
|
(
|
||||||
cmpt,
|
cmpt,
|
||||||
mesh.nonOrthCorrectionVectors()
|
correctedSnGrad<typename pTraits<Type>::cmptType>(mesh)
|
||||||
& linear
|
.fullGradCorrection(vf.component(cmpt))
|
||||||
<
|
|
||||||
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))
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user