making a custom functionObject
For learning purpose, I have copied vorticity function object and changed its name to vorticity2( and changed all necessary places in .C an .H file, I feel). I have compiled it to "libmyFunctionObjects.so". I added the following in the system/controlDict of the cavity case.
function { vort { type vorticity2; libs ("libmyFunctionObjects.so"); } } However, it failed to calculate the vorticity. postProcess -func vorticity2 also run without writing any file. It would be great if somebody point out where I went wrong or what knowledge I lack to proceed? I use OpenFOAM-v2012. |
I solved it.
I had to add an entry
libs ("libfieldFunctionObjects.so"); with this it worked flawlessly. Hope this may be useful to some one. |
Quote:
Hi, I have been struggling with this issue. To make it clear. You had something like this: Code:
libs ("libfieldFunctionObjects.so"); Code:
postProcess -func vorticity2 |
Yes, Exactly!
|
All times are GMT -4. The time now is 03:28. |