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

Add source term in icoReactingMultiphaseInterFoam VOF equation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 14, 2022, 07:02
Default Add source term in icoReactingMultiphaseInterFoam VOF equation
  #1
New Member
 
Jon
Join Date: Mar 2013
Posts: 14
Rep Power: 13
CHUIKOV is on a distinguished road
Dear Foamers

I'm looking into icoReactingMultiphaseInterFoam for a laser melting case with added mass (blown powder or wire).

I had a look at the solver structure but cant find the alphaEqn.H file. I would like add a source term for the liquid phase in the corresponding VOF equation.

Any idea how to proceed?

many thanks in advance,

Chuikov
CHUIKOV is offline   Reply With Quote

Old   July 15, 2022, 02:24
Default
  #2
Member
 
Join Date: Jan 2022
Location: Germany
Posts: 72
Rep Power: 4
überschwupper is on a distinguished road
Peace,


the alpha equation is integrated inside of the >>fluid.solve()<< routine of the multiphaseSystem class. The solve() function then calls the function >>solveAlphas()<< function.


My ideas would be:
1.) calculate your source term and add it to the equation. Ensure that this term is zero for the other phases
2.) Conditional statement and just add your source term if the condition is met


Copy that library in you rown library folder

recompile that library into FOAM_USER_LIBBIN (best under a different name)

change inside the Make/options file inside the icoReactingMultiphaseInterFoam directory the source directory of your library and the library name
überschwupper is offline   Reply With Quote

Old   July 19, 2022, 02:12
Default
  #3
New Member
 
Jon
Join Date: Mar 2013
Posts: 14
Rep Power: 13
CHUIKOV is on a distinguished road
many thanks for your kind assistance!

looks like quite a complex function, I will try my luck with a coded source via fvOptions

cheers!
CHUIKOV 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
[Other] Tabulated thermophysicalProperties library chriss85 OpenFOAM Community Contributions 62 October 2, 2022 03:50
Source Term due to evaporation in energy transport equation styleworker OpenFOAM Programming & Development 3 September 7, 2022 03:09
[swak4Foam] swak4foam for OpenFOAM 4.0 mnikku OpenFOAM Community Contributions 80 May 17, 2022 08:06
Using PengRobinsonGas EoS with sprayFoam Jabo OpenFOAM Running, Solving & CFD 35 April 29, 2022 15:35
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 10:57


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