CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Locating near wall cells for evaporation model

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

LinkBack Thread Tools Search this Thread Display Modes
Old   January 30, 2014, 13:34
Default Locating near wall cells for evaporation model
New Member
Join Date: Sep 2010
Location: Windsor, Ontario
Posts: 17
Rep Power: 15
mehrdad_kbg is on a distinguished road
Hi everyone,

I am trying to simulate evaporation due to high heat flux on a specific wall. I have written following lines to locate the near wall cells where the evaporation occurs.
At this moment I am only considering a constant value for evaporation (GammaGL[iCell] = 20).
I was wondering if these lines locate the near wall cells and employ the evaporation rate on the near wall cells?

Thanks for your help.

const fvPatchList& patches = mesh.boundary();

forAll(patches, patchi)

const fvPatch& thePatchItselfWall = patches[patchi];

if (isA<wallFvPatch>(thePatchItselfWall))
forAll(thePatchItselfWall, iFace)
label iCell = thePatchItselfWall.faceCells()[iFace];
vector iCellCentre = mesh.cellCentres()[iCell];

GammaGL[iCell] = 20;

mehrdad_kbg is offline   Reply With Quote

Old   January 30, 2014, 17:09
Senior Member
Join Date: Dec 2011
Location: Leuven, Belgium
Posts: 299
Rep Power: 21
Lieven will become famous soon enough
That should work


Lieven is offline   Reply With Quote

Old   February 4, 2014, 02:56
Senior Member
Join Date: Oct 2013
Posts: 397
Rep Power: 17
chriss85 will become famous soon enough
I am also going to implement a similar behaviour in the future. I was planning to add a source term for rho in the first cell layer, based on the heat flux going into the wall. The wall would have a fixedValue boundary condition matching the evaporation temperature of the material. Do you think this is a possible approach or are there better methods?
chriss85 is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to handel source term in near wall cells kaifu OpenFOAM 1 May 15, 2011 16:59
UDF for wall slipping HFLUENT Fluent UDF and Scheme Programming 0 April 27, 2011 12:03
[snappyHexMesh] snappyHexMesh aborting Tobi OpenFOAM Meshing & Mesh Conversion 0 November 10, 2010 03:23
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 20:30
Wall functions Abhijit Tilak Main CFD Forum 6 February 5, 1999 01:16

All times are GMT -4. The time now is 16:47.