CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Paraview & paraFoam (http://www.cfd-online.com/Forums/openfoam-paraview/)
-   -   `value'-free boundary conditions in paraFoam (http://www.cfd-online.com/Forums/openfoam-paraview/68879-value-free-boundary-conditions-parafoam.html)

yohey October 5, 2009 08:14

`value'-free boundary conditions in paraFoam
 
I'm using version 1.6 on Debian (lenny), and in trouble with paraFoam.

I would like to make a new boundary condition
which doesn't need `value' entry such as `surfaceNormalFixedValue'.

So, I copied `surfaceNormalFixedValue' as following.


$ mkdir -p $WM_PROJECT_USER_DIR/src/finiteVolume/fields/fvPatchFields/derived/copyOfSurfaceNormalFixedValue
$ cp $WM_PROJECT_DIR/src/finiteVolume/fields/fvPatchFields/derived/surfaceNormalFixedValue/surfaceNormalFixedValueFvPatchVectorField.C $WM_PROJECT_USER_DIR/src/finiteVolume/fields/fvPatchFields/derived/copyOfSurfaceNormalFixedValue/copyOfSurfaceNormalFixedValueFvPatchVectorField.C
$ cp $WM_PROJECT_DIR/src/finiteVolume/fields/fvPatchFields/derived/surfaceNormalFixedValue/surfaceNormalFixedValueFvPatchVectorField.H $WM_PROJECT_USER_DIR/src/finiteVolume/fields/fvPatchFields/derived/copyOfSurfaceNormalFixedValue/copyOfSurfaceNormalFixedValueFvPatchVectorField.H
$ sed -i -e 's/surfaceNormalFixedValue/copyOfSurfaceNormalFixedValue/g' $WM_PROJECT_USER_DIR/src/finiteVolume/fields/fvPatchFields/derived/copyOfSurfaceNormalFixedValue/copyOfSurfaceNormalFixedValueFvPatchVectorField.*


And, I compiled this new boundary condition into `libmyBCs.so'.

Then, I tried to use this boundary condition as

libs ("libOpenFOAM.so" "libmyBCs.so");

in reference to
http://www.cfd-online.com/OpenFOAM_D...tml?1218642042


It works correctly with OpenFOAM-1.6 solvers.
Although, ParaView still fails to load `libmyBCs.so'.


--> FOAM Warning :
From function dlLibraryTable::open(const fileName& functionLibName)
in file db/dlLibraryTable/dlLibraryTable.C at line 79
could not load /home/yohey/OpenFOAM/yohey-1.6/lib/linux64GccDPOpt/libmyBCs.so: undefined symbol: _ZN4Foam12fvPatchFieldINS_6VectorIdEEE31patchMappe rConstructorTablePtr_E


Does anyone have any idea on this?


Sincerely.

Yohey


All times are GMT -4. The time now is 22:44.