writing radiation source term in fireFoam
In fireFoam solver, the radiation source term is included in hs equation ..file YhsEqn.H as follows:
fvScalarMatrix hsEqn ( fvm::ddt(rho, hs) + mvConvection->fvmDiv(phi, hs) - fvm::laplacian(turbulence->alphaEff(), hs) == DpDt + dQ + radiation->Shs(thermo) + parcels.Sh(hs) + surfaceFilm.Sh() ); I want to write out the radiation source term 'radiation->Shs(thermo)'. Can someone tell what changes should I make in the fireFoam solver to write the radiation source term. |
You have to add a new field (probably in createFields.H) which is written every timestep. Then copy radiotion-Shs(thermo) to this field before the timestep is finished.
|
Hi Marshak,
I have the some problem with you!I also want to write out the radiation source term 'radiation->Shs(thermo)'.Have you solved it?If it is solved,could tell how to do it?Thanks in advance! |
'jhreb' I tried with createfields.H but it is not working...
|
Here is what I did in a comparable case:
Add a new field to createFields.H Code:
volScalarField Shs( Code:
if (pimple.finalIter()) |
related question in another thread
Hello,
fyi I put a related radiation question to another thread http://www.cfd-online.com/Forums/ope...blem-5.html#99 thanks dirk |
Shs() in radiation::radiationModel is defined as fvScalarMatrix. How can a fvScalarmatrix be written as a volScalarField?
|
You are right. I my case what I really used was something like
Code:
rHS1 = fvc::reconstruct Code:
if (pimple.finalIter()) I didn't test it, but it is probably possible to assign these diagonal elements to an volume scalar field, which could be written to disk and then loaded into Paraview. Quote:
|
Hi everyone!
I've got a similar problem with a modification of the kinematicSingleLayer model for reactingParcelFilFoam. I added a pressure term to model the surface tension and it's working quite well. The problem is that I want to visualize this term and I'm not being able to save it. I've tried to modify the original NO_WRITE for AUTO_WRITE but it doesn't work. Any idea?? Code:
tmp<volScalarField> myKinematicSingleLayer::pu() David |
Quote:
Dear David, Did you find a solution to this? I am attempting to write out a source term and got stuck. |
All times are GMT -4. The time now is 17:51. |