CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

openfoam fvoptions "absolute" option

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By Pappelau

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 30, 2022, 00:42
Default openfoam fvoptions "absolute" option
  #1
New Member
 
Join Date: Jan 2022
Posts: 27
Rep Power: 4
wjchoi is on a distinguished road
hello, i am beginner of openfoam!

when i studied the heat source problem related to fvOptions, i had a question.

there are two options to inject heat in fvOptions,
one is "specific", the other is "absolute"

as i know, the "specific" options can give heat to domain by power per unit volume (W/m^3) and the absolute options give heat to domain by power as itself (W).

in this situation, i had a question.

As i know, the heat equation consists of the unit, "per volume" [/m^3].
so, if we selected the "absolute option", how the heat eqution deals with the absolute option?

they divide the absolute power by volume of domain and then put it in the heat equation?

is there anyone to explain this for me?
thank you for reading my thread
wjchoi is offline   Reply With Quote

Old   June 30, 2022, 02:47
Default
  #2
Member
 
Lukas
Join Date: Sep 2021
Posts: 36
Rep Power: 4
Pappelau is on a distinguished road
Good Morning,
you are right.
if you want to find the threatment of absolute option(Q) you find it here :
https://cpp.openfoam.org/v9/heatSource_8C_source.html

void Foam::fv::heatSource::readCoeffs()


TLDR: foam converts your absolute source directly in a volumetric
altinel and wjchoi like this.
Pappelau is offline   Reply With Quote

Old   June 30, 2022, 03:09
Default
  #3
New Member
 
Join Date: Jan 2022
Posts: 27
Rep Power: 4
wjchoi is on a distinguished road
Quote:
Originally Posted by Pappelau View Post
Good Morning,
you are right.
if you want to find the threatment of absolute option(Q) you find it here :
https://cpp.openfoam.org/v9/heatSource_8C_source.html

void Foam::fv::heatSource::readCoeffs()


TLDR: foam converts your absolute source directly in a volumetric

thank you very much!
if you don't mind, can i ask one more question?

when i saw the source code "thermophysicalproperties", the unit of Enthalpy was j/kg.

however, in fvoptions, the unit of heat source is W(watt, J/s).

so i wonder how the unit conversion (j/kg [enthalpy] <-> j/s (or j/s m^3) [specific or absolute power using fvOptions]) is conducted in calculation including fvoptions.

thank you very much!
wjchoi is offline   Reply With Quote

Old   July 1, 2022, 00:22
Default
  #4
Member
 
Lukas
Join Date: Sep 2021
Posts: 36
Rep Power: 4
Pappelau is on a distinguished road
Good morning again,
I don't exactly know what you mean by conversion - as each computational cell has a volume and a weight, you just have a enthalpy in joule per cell there you can add your heat of fvoptions.
Pappelau is offline   Reply With Quote

Old   July 1, 2022, 02:49
Default
  #5
New Member
 
Join Date: Jan 2022
Posts: 27
Rep Power: 4
wjchoi is on a distinguished road
Quote:
Originally Posted by Pappelau View Post
Good morning again,
I don't exactly know what you mean by conversion - as each computational cell has a volume and a weight, you just have a enthalpy in joule per cell there you can add your heat of fvoptions.



thank you very much for your kind explanation!


what i told you is that the unit of enthalpy in thermophysicalProperties is j/kg but, the unit of heat source is W (absolute) or W/m^3 (specific) in fvOptions. [as you know, W=j/s]

i think that when we calculate the heat problem, the differences of unit will make heat calculation difficult.

so, my additional question is below.

"how openfoam deals with the difference of unit between enthalpy in thermophysicalProperties and heat source in fvOptions about heat calculation?"

in openfoam, the unit conversion is automatically conducted?

for example, when i put the heat source in the domain using absolute option[W=j/s] of fvOptions, it consider the calculation time, so multiply calculation time by heat power [W * s] and then, divided by cell weight ? [W*s/kg -->same as the unit of enthalpy in thermophysicalProperties (j/kg)]

i found the source code related to this, but i could not..

can you explain this? or can you show the source code about this?
thank you for reading my thread!
and sorry for my a lack of knowledge
wjchoi is offline   Reply With Quote

Reply


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
Wind turbine simulation Saturn CFX 58 July 3, 2020 01:13
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 05:21
Simulation of a single bubble with a VOF-method Suzzn CFX 21 January 29, 2018 00:58
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 17:44
Constant velocity of the material Sas CFX 15 July 13, 2010 08:56


All times are GMT -4. The time now is 10:33.