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

How to solve Evaporation based on Condition ~ if-else loop

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 13, 2019, 02:35
Question How to solve Evaporation based on Condition ~ if-else loop
  #1
Senior Member
 
Kumaresh
Join Date: Oct 2016
Posts: 354
Rep Power: 12
Kummi is on a distinguished road
Send a message via Yahoo to Kummi
Hello Foamers,
This evaporation problem is a part of work in my main problem.

The problem is simple, a rectangular 1D channel is considered where right end is symmetry, left end is with the temperature of 373K, other faces are empty (1D problem). 10% of liquid (moisture) is considered inside the channel. The liquid is evaporated based on the condition as follows:
Quote:
CONDITION: @ T= 373K ==> liquid (alpha) content =0
Based on it, mass and heat balances are calculated at the boiling plane (surface) as,
Mass balance (r) = rho * alpha * (dx/dt) [kg/m2.s]
Heat balance (-K dT/dx) = (r) * latent heat [W/m2]
Based on the condition, mass and heat balances are calculated.

I'm hereby attaching the solver (OF211). In this solver, under TEqn.H, I solved a if-else loop based on the above condition.
Quote:
forAll(mesh.cells(), celli)
{
if (T[celli] >= Tsat.value())
{
alpha[celli] = scalar(0.0);
}
else
{
alpha[celli] = alphaTemp[celli];
// alpha[celli] = alpha[celli];
// alpha[celli] = alpha[nearestCellIndex];
}
}
Later, the solver is compiled and temperature varies inside the channel. However, the alpha (moisture content) is not solved properly with appropriate outcome. In my case, alpha has no expression (field operation), alpha is only solved based on the above condition as the loop (check Attachment plz). So, do we need an expression to solve alpha (like alpha depends on temperature expression) basically? any ideas ?

If someone have any ideas about it, kindly do share.

It will be helpful. Thank you
Attached Images
File Type: jpg ATTACHMENT_1_Boiling.jpg (110.9 KB, 10 views)
File Type: png ATTACHMENT_2_Convection.png (153.7 KB, 8 views)
Attached Files
File Type: gz Boiling_solver.tar.gz (156.7 KB, 2 views)
Kummi 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
periodic boundary condition in a loop flow dinesh Main CFD Forum 0 March 25, 2017 02:33
Framework for moving mesh based on 2D-computation as a boundary condition Arnoldinho OpenFOAM Running, Solving & CFD 0 May 17, 2011 13:48
can fluent(multiphase model) solve evaporation prasanth FLUENT 9 June 16, 2010 07:27
[CAD formats] my stl surface is seen as just a line rcastilla OpenFOAM Meshing & Mesh Conversion 2 January 6, 2010 02:30
CFX Solver : Sudden crash Hervé CFX 2 June 16, 2008 07:40


All times are GMT -4. The time now is 12:02.