CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Unknown functionObject forces

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 23, 2020, 09:52
Default Unknown functionObject forces
  #1
Member
 
David Andersson
Join Date: Oct 2019
Posts: 46
Rep Power: 7
sippanspojk is on a distinguished road
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
sippanspojk is offline   Reply With Quote

Old   January 25, 2020, 07:10
Default
  #2
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16
mAlletto will become famous soon enough
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
mAlletto is offline   Reply With Quote

Old   January 27, 2020, 04:52
Default
  #3
Member
 
David Andersson
Join Date: Oct 2019
Posts: 46
Rep Power: 7
sippanspojk is on a distinguished road
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
sippanspojk is offline   Reply With Quote

Reply

Tags
functionobject, openfoam-6


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Commercial meshers] converting Fluent mesh to openfoam standard mesh deepesh OpenFOAM Meshing & Mesh Conversion 31 March 29, 2017 06:59
[Other] How to create an MRF zone ? aminem OpenFOAM Meshing & Mesh Conversion 2 December 8, 2014 11:45
Thermal Comfort Simulation in STAR CCM+ anupmu STAR-CCM+ 1 February 27, 2013 15:25
[OpenFOAM] Saving ParaFoam views and case sail ParaView 9 November 25, 2011 16:46
compressible two phase flow in CFX4.4 youngan CFX 0 July 2, 2003 00:32


All times are GMT -4. The time now is 16:13.