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

rho in fvc::flux

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 29, 2012, 14:31
Default rho in fvc::flux
  #1
Senior Member
 
santiagomarquezd's Avatar
 
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 24
santiagomarquezd will become famous soon enough
Hi all, I'm looking for the way the give the fvc::flux a density with a different name of "rho", from the code we have that when we're dealing with a mass flux, then the following code is executed (PhiScheme.C):

Code:
00069     if (this->faceFlux_.dimensions() == dimDensity*dimVelocity*dimArea)
00070     {
00071         const volScalarField& rho =
00072             phi.db().objectRegistry::template lookupObject<volScalarField>
00073             ("rho");
00074 
00075         tUflux = this->faceFlux_/fvc::interpolate(rho);
00076     }
so the problem density is obtained from the objectRegistry. The issue is that it seems FOAM only search for "rho" named density.

Is it possible to give a different name for the density in the case of fvc::flux operataror like in BC's?

Thanks in advance.
__________________
Santiago MÁRQUEZ DAMIÁN, Ph.D.
Research Scientist
Research Center for Computational Methods (CIMEC) - CONICET/UNL
Tel: 54-342-4511594 Int. 7032
Colectora Ruta Nac. 168 / Paraje El Pozo
(3000) Santa Fe - Argentina.
http://www.cimec.org.ar
santiagomarquezd 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
rhoSimplecFoam, solving rho j-blindi OpenFOAM Running, Solving & CFD 4 October 14, 2011 05:54
Low Mach number Compressible jet flow using LES ankgupta8um OpenFOAM Running, Solving & CFD 7 January 15, 2011 14:38
rho euation in rhoPisoFoam nileshjrane OpenFOAM Running, Solving & CFD 4 October 5, 2010 08:44
Error while running rhoPisoFoam.. nileshjrane OpenFOAM Running, Solving & CFD 8 August 26, 2010 13:50
Error log vw.cfd OpenFOAM 6 August 7, 2009 06:44


All times are GMT -4. The time now is 16:43.