33 #include "volFields.H"
34 #include "surfaceFields.H"
35 #include "coupledFvPatch.H"
36 #include "processorFvPatch.H"
37 #include "emptyFvPatch.H"
38 #include "wedgeFvPatch.H"
39 #include "fvcSnGrad.H"
56 if (vF.mesh().nGeometricD() == 1)
61 else if (vF.mesh().nGeometricD() == 2)
74 if (vF.mesh().nGeometricD() == 1)
79 else if (vF.mesh().nGeometricD() == 2)
81 surfaceVectorField gradU (vector::zero*fvc::snGrad(vF.component(0)));
82 surfaceVectorField gradV (gradU*0.0);
83 surfaceVectorField gradW (gradU*0.0);
90 gradf.primitiveFieldRef().replace(0, gradU.primitiveField().component(0));
91 gradf.primitiveFieldRef().replace(1, gradV.primitiveField().component(0));
92 gradf.primitiveFieldRef().replace(2, gradW.primitiveField().component(0));
94 gradf.primitiveFieldRef().replace(3, gradU.primitiveField().component(1));
95 gradf.primitiveFieldRef().replace(4, gradV.primitiveField().component(1));
96 gradf.primitiveFieldRef().replace(5, gradW.primitiveField().component(1));
98 gradf.primitiveFieldRef().replace(6, gradU.primitiveField().component(2));
99 gradf.primitiveFieldRef().replace(7, gradV.primitiveField().component(2));
100 gradf.primitiveFieldRef().replace(8, gradW.primitiveField().component(2));
103 gradf.boundaryFieldRef().replace(0, gradU.boundaryField().component(0));
104 gradf.boundaryFieldRef().replace(1, gradV.boundaryField().component(0));
105 gradf.boundaryFieldRef().replace(2, gradW.boundaryField().component(0));
107 gradf.boundaryFieldRef().replace(3, gradU.boundaryField().component(1));
108 gradf.boundaryFieldRef().replace(4, gradV.boundaryField().component(1));
109 gradf.boundaryFieldRef().replace(5, gradW.boundaryField().component(1));
111 gradf.boundaryFieldRef().replace(6, gradU.boundaryField().component(2));
112 gradf.boundaryFieldRef().replace(7, gradV.boundaryField().component(2));
113 gradf.boundaryFieldRef().replace(8, gradW.boundaryField().component(2));
126 if (vVF.mesh().nGeometricD() == 1)
131 else if (vVF.mesh().nGeometricD() == 2)
144 if (vTF.mesh().nGeometricD() == 1)
149 else if (vTF.mesh().nGeometricD() == 2)
void faceDiv(const volVectorField &f, surfaceScalarField &divf)
void faceGrad(const volScalarField &f, surfaceVectorField &gradf)
void faceGrad(const volScalarField &f, surfaceVectorField &gradf)
GaussVolPointBase(const fvMesh &mesh)
void faceDiv(const volVectorField &vVF, surfaceScalarField &divf)
void faceDiv(const volVectorField &f, surfaceScalarField &divf)
void faceGrad(const volScalarField &f, surfaceVectorField &gradf)
void faceDiv(const volVectorField &f, surfaceScalarField &divf)
void faceGrad(const volScalarField &vF, surfaceVectorField &gradf)