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

Implementing a new InjectionModel / RunTimeSelection Problems

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 7, 2011, 09:37
Default Implementing a new InjectionModel / RunTimeSelection Problems
  #1
New Member
 
Samuel Vogel
Join Date: Mar 2009
Posts: 20
Rep Power: 17
spv24 is on a distinguished road
Hello,

I would like to create a new injection model. This should be based on the:

OpenFOAM-2.0.x/src/lagrangian/intermediate/submodels/ReactingMultiphase/InjectionModel/ReactingMultiphaseLookupTableInjection

model. So I copied the source files of the folder above to my local workspace, renamed the files and classes (no code changes so far - just duplicating the code), updated the make/files accordingly and compiled a user library (libmySpray). The compilation worked fine.

Then I linekd the user library to a custom solver (did the same procedure, copied a solver that was working with the original injection model above, renamed it without code changes, updated make/files and compiled it --> worked well).

But when I am starting the solver, and putting the renamed, new InjectionModel into the corresponding dictFile, the new injectionModel is not recognized. It doesn't appear in the list that is showed when using a un-known injeciton model.

What have I missed? Do I have to register the new InjectionModel in a source somewhere else, outside the copied source files from the directory given above?

Could someone please explain how I can add this new submodel to the runtimeSelectableList?

So far no compilaiton errors!

Thanks,

Sammy
spv24 is offline   Reply With Quote

Old   October 8, 2011, 11:47
Default Closed
  #2
New Member
 
Samuel Vogel
Join Date: Mar 2009
Posts: 20
Rep Power: 17
spv24 is on a distinguished road
Finally found the solution: I have to register the new injectionModel in the corresponding make* file in the folder:

OpenFOAM-2.0.x src/lagrangian/intermediate/parcels/include

Then it is working!
spv24 is offline   Reply With Quote

Reply


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
[ICEM] Problems with coedge curves and surfaces tommymoose ANSYS Meshing & Geometry 6 December 1, 2020 11:12
Needed Benchmark Problems for FSI Mechstud Main CFD Forum 4 July 26, 2011 12:13
Problems implementing a boundary condition ogloth OpenFOAM Running, Solving & CFD 3 July 17, 2007 15:36
Some problems with Star CD Micha Siemens 0 August 6, 2003 13:55
Inverse problems Aleksey Alekseev Main CFD Forum 0 May 12, 1999 15:38


All times are GMT -4. The time now is 05:38.