CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Unknown functionObject forces (https://www.cfd-online.com/Forums/openfoam-programming-development/223722-unknown-functionobject-forces.html)

sippanspojk January 23, 2020 08:52

Unknown functionObject forces
 
I have for a while been working on my own functionObject (FO). I initially made a copy of the "forces" FO to my USER directory and adapted it to my needs. However, when I now try to include the old "forces" FO OpenFOAM doesn't recognize that, even though if the original files are untouched.

Does anyone know how to solve this problem?

Thanks,
David

mAlletto January 25, 2020 06:10

did you overwrite the typeName in your new function object or left it the same?


Code:

//- Runtime type information
    TypeName("forces");


If you did not change the type name this may be the reason the original function object is not recognized

sippanspojk January 27, 2020 03:52

Hi Michael, thank you for your reply!

I found the problem on my own. In the Make/files I had change the directory to which I compile to to "FOAM_USER_LIBBIN" but I had forgotten to change the file name so I was overwriting the libforces with my new file. When I changed that I could use the original forces function again.

/David


All times are GMT -4. The time now is 09:18.