mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Test-fvc: minor enhancement
This commit is contained in:
@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user