CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Running, Solving & CFD

rho in fvc::flux

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

LinkBack Thread Tools Display Modes
Old   February 29, 2012, 14:31
Default rho in fvc::flux
Senior Member
santiagomarquezd's Avatar
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 420
Rep Power: 15
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):

00069     if (this->faceFlux_.dimensions() == dimDensity*dimVelocity*dimArea)
00070     {
00071         const volScalarField& rho =
00072             phi.db().objectRegistry::template lookupObject<volScalarField>
00073             ("rho");
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.
Post-doctoral Fellow
Research Center for Computational Mechanics (CIMEC) - CONICET/FICH-UNL
T.E.: 54-342-4511594 Ext. 1005
Güemes 3450 - (3000) Santa Fe
Santa Fe - Argentina
santiagomarquezd is offline   Reply With Quote


Thread Tools
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 On
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 04: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 07:44
Error while running rhoPisoFoam.. nileshjrane OpenFOAM Running, Solving & CFD 8 August 26, 2010 12:50
Error log OpenFOAM 6 August 7, 2009 05:44

All times are GMT -4. The time now is 04:54.