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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 5, 2022, 12: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

Old   August 9, 2022, 06:04
Default
  #2
New Member
 
Lennart
Join Date: May 2022
Posts: 15
Rep Power: 4
levoCFD is on a distinguished road
Turned out the problem had nothing to do with the new code itself. I simply did not compile it properly.
I am now able to use massSource as a source.

However, when I try to use it in one of the tutorial cases it is not giving the expected results. I have modified the multiphaseEulerFoam/injection case as shown at https://github.com/OpenFOAM/OpenFOAM-dev/commit/69e98dc28d1c5d6846f4c34ed5ee0918c7519f90 but when I run the case and view the results in paraView there is no injection anymore.

Has anyone successfully used massSource?

Last edited by levoCFD; August 9, 2022 at 09:08.
levoCFD is offline   Reply With Quote

Old   August 21, 2023, 10:50
Default
  #3
New Member
 
Mitchell Whiting
Join Date: Feb 2023
Posts: 2
Rep Power: 0
MitchWhiting is on a distinguished road
Hi Lennart,

Did you ever come right with your issues, also what version of OpenFOAM did you manage to compile this library on?

Thanks in advance
MitchWhiting is offline   Reply With Quote

Reply

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 22:43
Multiphase flow - incorrect velocity on inlet Mike_Tom CFX 6 September 29, 2016 02:27
Compression stoke is giving higher pressure than calculated nickjuana CFX 62 May 19, 2015 14:32
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 05:05


All times are GMT -4. The time now is 04:19.