CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Locating near wall cells for evaporation model (https://www.cfd-online.com/Forums/openfoam-programming-development/129203-locating-near-wall-cells-evaporation-model.html)

mehrdad_kbg January 30, 2014 13:34

Locating near wall cells for evaporation model
 
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;

}
}
}

Lieven January 30, 2014 17:09

That should work :)

Cheers,

Lieven

chriss85 February 4, 2014 02:56

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?


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