Modify pointDisplacement field from within solver?
I am currently trying to move some boundary points (in normal direction) with OpenFoam 1.6. Therefore I am playing around with the dynamicFvMesh stuff. This is all working great. I have created a 'dynamicMeshDict' containing:
I have also create a 'pointDisplacement' file and modified it sth some points are moved. This also works as expected and paraView shows the result as expected.
In the next step I tried to modify the pointDisplacement field from within my solver/application.
I get a reference by using
pointVectorField &pointDisp = const_cast<pointVectorField&>( mesh.lookupObject<pointVectorField>("pointDisplacement") );
This should be ok, but as soon as I try to access the field eg by writing
Info << pointDisp;
I can't compile anymore. wmake aborts saying
modifyMeshFoam.C:91: instantiated from here
/app/openfoam/1.6.0/OpenFOAM-1.6/src/OpenFOAM/lnInclude/GeometricBoundaryField.C:408: error: invalid use of incomplete type ‘const struct Foam::pointPatchField<Foam::Vector<double> >’
/app/openfoam/1.6.0/OpenFOAM-1.6/src/OpenFOAM/lnInclude/pointFieldsFwd.H:50: error: declaration of ‘const struct Foam::pointPatchField<Foam::Vector<double> >’
make: *** [Make/linux64GccDPOpt/modifyMeshFoam.o] Error 1
Can anyone please help me with that?
ok, I have just managed to modify the boundaryField of pointDisplacement.
would you mind sharing your #include list? I'm always getting
|All times are GMT -4. The time now is 00:16.|