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

Adding massSource option to fvOptions

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   August 5, 2022, 11:52
Default Adding massSource option to fvOptions
  #1
New Member
 
Lennart
Join Date: May 2022
Posts: 15
Rep Power: 4
levoCFD is on a distinguished road
Hi,

I am trying to add Will Bainbridge's massSource (https://github.com/OpenFOAM/OpenFOAM-dev/commit/69e98dc28d1c5d6846f4c34ed5ee0918c7519f90) to the available sources in the fvOptions.

Therefore, I have:
  • added the line
    Code:
    $(derivedSources)/massSource/massSource.C
    to the src/fvOptions/Make/files file,

  • added the file massSource.C to the src/fvOptions/sources/derived/ directory,
  • added the file massSource.H to the src/fvOptions/sources/derived/ directory
Still, when I select massSource in the fvOptions, I am getting the error:
Code:
--> FOAM FATAL ERROR: 
  Unknown Model type massSource
Is there any other step I have missed out? It is my first time modifying OpenFOAM source code.
Does someone have experience with this new source type?
levoCFD is offline   Reply With Quote

 

Tags
fvoptions, mass source, source code


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
Setting the height of the stream in the free channel kevinmccartin CFX 12 October 13, 2022 21:43
Multiphase flow - incorrect velocity on inlet Mike_Tom CFX 6 September 29, 2016 01:27
Compression stoke is giving higher pressure than calculated nickjuana CFX 62 May 19, 2015 13:32
Water subcooled boiling Attesz CFX 7 January 5, 2013 03:32
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 04:05


All times are GMT -4. The time now is 23:42.