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

units after multipl. with phi

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By meindert

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 26, 2012, 12:01
Default units after multipl. with phi
  #1
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,705
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi all,

I have an equation like that:

Code:
div(phi, H) + Q
Solver that is used is rhoSimpleFoam - compressible. The unit of H is [J/kg]. Q has the unit [W/m³].

I had a look at the phi file and the file has the unit [kg/s]. Also I had a look at the createCompressiblePhi.H file and there is phi defined as the mass flow.

So after div(phi, H) I should get the unit [J/s] = [W] ...
Or am I wrong?

If phi = rho then everything would be nice
I am a bit confused.

Tobi
Tobi is offline   Reply With Quote

Old   September 26, 2012, 14:07
Default
  #2
Member
 
Meindert de Groot
Join Date: Jun 2012
Location: Netherlands
Posts: 34
Rep Power: 13
meindert is on a distinguished road
Could it be that you are missing the cell volume from the finite volume integration in your Q term?

phi = rho would still not solve your problem, because you're still missing [1/s] in that case.
meindert is offline   Reply With Quote

Old   September 26, 2012, 14:12
Default
  #3
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,705
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi,

no its implemented in the flamelet tool from alberto.
He added an enthalpy defect like that:

Code:
div(phi, H)
- laplacian(turbulence->mut/sigmat, H) 
+ Qrad
where Qrad is calculated with

Code:
Qrad = 4 * sigma_B * (T_cell^4 - T_env^4) * as
Like here: http://www.sandia.gov/TNF/radiation.html

Qrad [W/m³]
H [J/kg]

Well - but you `re right. There is still a s missing :/
I a m confused with taht code.
Tobi is offline   Reply With Quote

Old   September 28, 2012, 06:52
Default
  #4
Member
 
Meindert de Groot
Join Date: Jun 2012
Location: Netherlands
Posts: 34
Rep Power: 13
meindert is on a distinguished road
Hi Tobi,

Have a look at equation 2.29 in the Programmer's Guide.
meindert is offline   Reply With Quote

Old   September 30, 2012, 09:11
Default
  #5
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,705
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Quote:
Originally Posted by meindert View Post
Hi Tobi,

Have a look at equation 2.29 in the Programmer's Guide.
Hi,
do you mean the libOpenSmoke Guide or what programmers guide do you mean?
Tobi is offline   Reply With Quote

Old   October 1, 2012, 11:30
Default
  #6
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 620
Blog Entries: 6
Rep Power: 24
elvis will become famous soon enough
Hi Tobias,
the folks at OpenCFD have discontinued Programmers Guide that is correct

but you can still find
http://openfoam-extend.git.sourcefor...de.pdf;hb=HEAD
elvis is offline   Reply With Quote

Old   October 1, 2012, 14:32
Default
  #7
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,705
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
HI,

thanks very much.
Thats that what I need integration over a volume V - now I know how that works.

Thought that the programmers-guide is only the doxygen-code
Nice to know.

Tobi
Tobi is offline   Reply With Quote

Old   October 3, 2012, 18:24
Default
  #8
Member
 
Meindert de Groot
Join Date: Jun 2012
Location: Netherlands
Posts: 34
Rep Power: 13
meindert is on a distinguished road
Perhaps it's good to know that you can also find it in your $WM_PROJECT_DIR/doc/Guides-a4 directory.
Tobi likes this.
meindert is offline   Reply With Quote

Old   October 4, 2012, 16:55
Default
  #9
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,705
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Quote:
Originally Posted by meindert View Post
Perhaps it's good to know that you can also find it in your $WM_PROJECT_DIR/doc/Guides-a4 directory.

Nice to know.
Working with OF for 3 years now and be in that directory some times but never realized that

stupid!

but thanks!
tobi
Tobi is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Recreation of phi file, icoFoam Madeleine P. Vincent OpenFOAM Running, Solving & CFD 0 May 7, 2012 12:17
units in OpenFOAM megacrout OpenFOAM 4 July 19, 2011 09:04
emag beta feature: charge density charlotte CFX 4 March 22, 2011 10:14
Turbulence Model phi vs phi_ doug OpenFOAM Running, Solving & CFD 4 November 10, 2009 05:33


All times are GMT -4. The time now is 22:32.