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; } } } |
That should work :)
Cheers, Lieven |
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. |