CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

Writing out interphasechangefoam mass transfer terms as fields

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   October 15, 2013, 10:19
Default Writing out interphasechangefoam mass transfer terms as fields
  #1
New Member
 
Sri
Join Date: Nov 2012
Posts: 7
Rep Power: 4
srivatta is on a distinguished road
Hello,
I am trying to write out the mass condensation and evaporation terms (m+, m-) as fields per time-step in the interPhaseChangeFoam solver. What is the best way of doing this? Has anybody done this before? I am just a beginner with C++
Thank you very much,
Sri
srivatta is offline   Reply With Quote

Old   October 16, 2013, 06:00
Default
  #2
Member
 
Eysteinn Helgason
Join Date: Sep 2009
Location: Gothenburg, Sweden
Posts: 52
Rep Power: 7
eysteinn is on a distinguished road
Hi Sri

Here is a nice tutorial showing how you can modify the solver in order to add a transport equation for temperature.
If you follow what is shown on page 6, so starting by copying the solver to your folder
and ending with wmake on top of page 7.

Then open your myInterPhaseChangeFoam.C and add
Code:
alpha1.write();
just before
Code:
runTime.write();
and then compile using wmake, I think we should be getting somewhere. . . .

/Eysteinn
eysteinn is offline   Reply With Quote

Old   October 16, 2013, 08:18
Default Re: Writing out mass transfer terms
  #3
New Member
 
Sri
Join Date: Nov 2012
Posts: 7
Rep Power: 4
srivatta is on a distinguished road
Hi,
Thanks for the reply. Although, what you are suggesting writes our alpha1 which is the liquid volume fraction (this is written anyway as a field). I am trying to write out a modified form of mDot() which is in the PhaseChangeMixture folders under the mass transfer models (for my case it is SchnerrSauer.C).
Thanks,
Sri
srivatta is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Please Help.....Insufficient Catalogue Size Paresh Jain CFX 17 March 11, 2014 12:40
a reconstructPar issue immortality OpenFOAM Post-Processing 8 June 16, 2013 11:25
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 17:44
mass flow in is not equal to mass flow out saii CFX 2 September 18, 2009 08:07
writing UDF for modelig mass transfer for VOF ardalan soleymani FLUENT 0 July 11, 2007 01:09


All times are GMT -4. The time now is 11:00.