|
[Sponsors] |
Help with the units of enthalpy (h) in chtMultiRegionFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 18, 2014, 15:11 |
Help with the units of enthalpy (h) in chtMultiRegionFoam
|
#1 |
Senior Member
Alex
Join Date: Oct 2013
Posts: 337
Rep Power: 22 |
Hello everybody,
I'm struggling to understand how to set up a heat source in a solid region using the fvOptions framework with chtMultiregionFoam solver. However, I need to understand the governing equation used by the program. This is the equation found in the solveSolid.H file: Code:
tmp<fvScalarMatrix> hEqn ( fvm::ddt(betav*rho, h) - fvm::laplacian(betav*alpha, h, "laplacian(alpha,h)") == fvOptions(rho, h) ); Now, here come the main doubts I have:
That's all by now, I will appreciate any hint provided. Many thanks in advance! Alex
__________________
Web site where I present my Master's Thesis: foamingtime.wordpress.com The case I talk about in this site was solved with chtMultiRegionSimpleFoam solver and involves radiation. Some basic tutorials are also resolved step by step in the web. If you are interested in these matters, you are invited to come in! Last edited by zfaraday; June 19, 2014 at 09:42. Reason: corrected J/(kg*K) to J/kg |
|
June 24, 2014, 03:33 |
|
#2 |
New Member
Martin K
Join Date: Jan 2013
Location: Germany
Posts: 28
Rep Power: 13 |
Hi Alex,
did you yet manage to solve your problem? I got stuck on the same issue, how do I include a heat source in the hEqn and what are the enthalpy`s dimensions? If you were able to make any progress, I would really appreciate if you could share some Infos! Best regards, Martin Edit: The dimension seems to be J/kg. Info << mag(h) << provides a dimension set of [0 2 -2 0 0 0 0] |
|
June 24, 2014, 11:04 |
|
#3 | |
Senior Member
Alex
Join Date: Oct 2013
Posts: 337
Rep Power: 22 |
Quote:
I wish I could give you a positive message, but no, I'm still waiting for any hint. Whenever I find a solution I will let you know. I hope you do the same in case you find it first :P Thanks for what you said about about the dimensions of enthalpy, where did you find it out? I have been lookig for it like crazy with no success. Cheers Alex
__________________
Web site where I present my Master's Thesis: foamingtime.wordpress.com The case I talk about in this site was solved with chtMultiRegionSimpleFoam solver and involves radiation. Some basic tutorials are also resolved step by step in the web. If you are interested in these matters, you are invited to come in! |
||
June 25, 2014, 04:27 |
|
#4 |
New Member
Martin K
Join Date: Jan 2013
Location: Germany
Posts: 28
Rep Power: 13 |
Hi,
I saved the Enthalpy in solveSolid.H into a custom variable and made an output with Code:
Info << "myEnthalpy= " << myEnthalpy << nl << endl; |
|
June 25, 2014, 05:38 |
|
#5 | |||
Senior Member
|
Hi,
Quote:
Code:
tmp<volScalarField> talpha = thermo.alpha(); const volScalarField& alpha = talpha(); Quote:
Code:
template<class Type, class RhoType> Foam::tmp<Foam::fvMatrix<Type> > Foam::fv::optionList::operator() ( const RhoType& rho, GeometricField<Type, fvPatchField, volMesh>& fld, const word& fieldName ) { checkApplied(); const dimensionSet ds = rho.dimensions()*fld.dimensions()/dimTime*dimVolume; tmp<fvMatrix<Type> > tmtx(new fvMatrix<Type>(fld, ds)); fvMatrix<Type>& mtx = tmtx(); ... Quote:
Code:
... solidThermo& thermo = thermos[i]; ... volScalarField& h = thermo.he(); ... Code:
//- Enthalpy/Internal energy [J/kg] // Non-const access allowed for transport equations virtual volScalarField& he() = 0; |
||||
June 25, 2014, 17:56 |
|
#6 | |||
Senior Member
Alex
Join Date: Oct 2013
Posts: 337
Rep Power: 22 |
Thank you so much Alexey, that was exactly what I was looking for!
Quote:
Quote:
I understand that I was pointing at the right direction, I only forgot to divide it by the time and multiply it by the volume, right? I guess that the field called fld in my case would be h(J/kg), then what is given by fvOptions would be Watts, is it right? Quote:
Regards, Alex
__________________
Web site where I present my Master's Thesis: foamingtime.wordpress.com The case I talk about in this site was solved with chtMultiRegionSimpleFoam solver and involves radiation. Some basic tutorials are also resolved step by step in the web. If you are interested in these matters, you are invited to come in! |
||||
June 26, 2014, 08:21 |
|
#7 | ||
Senior Member
|
Quote:
Quote:
|
|||
Tags |
chtmultiregionfoam, fvoptions |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error in thermophysical properties (chtMultiRegionFoam) | mukut | OpenFOAM Pre-Processing | 28 | November 23, 2021 07:34 |
Thermophysical Property Units | johanz | OpenFOAM Pre-Processing | 2 | December 16, 2018 11:08 |
Sensible Enthalpy vs. Total enthalpy | Sethi | OpenFOAM Programming & Development | 3 | March 23, 2017 22:48 |
Enthalpy source of Particle in DPM | icemesh | FLUENT | 1 | March 23, 2016 06:19 |
Enthalpy in a binary gas mixture | ChrisA | FLUENT | 0 | August 26, 2013 20:32 |