CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

scalar to be replaced by volScalarField in equation

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

LinkBack Thread Tools Display Modes
Old   April 15, 2011, 13:24
Default scalar to be replaced by volScalarField in equation
Join Date: Nov 2010
Posts: 54
Rep Power: 8
usergk is on a distinguished road
Hello FOAMers,

I am trying to modify the following equation:

fvm::ddt(rho, Yi)
+ mvConvection->fvmDiv(phi, Yi)
- fvm::laplacian
(TF*E*(turbulence->mu()+ turbulence->mut())),
Yi, "laplacian(muEff,Yi)"
+ E*chemistry.RR(i)().dimensionedInternalField()/TF
+ massSource.Su(i)

Here TF is a scalar (constant value in each cell of the domain); however, I want to replace it by a volScalarField (a dynamic value calculated at each time step and varies across the cells).

Can someone provide the syntax of how to go about it? I've tried a few ways but they don't seem to be working.

Many thanks,

Last edited by usergk; April 15, 2011 at 13:59.
usergk is offline   Reply With Quote

Old   April 18, 2011, 08:15
Senior Member
santiagomarquezd's Avatar
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 438
Rep Power: 17
santiagomarquezd will become famous soon enough
Hi, see in createFields.H file and add a new TF field.

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.
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
dieselFoam problem!! trying to introduce a new heat transfer model vivek070176 OpenFOAM Programming & Development 10 December 24, 2014 00:48
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 06:27
Source Term on Scalar Transport Equation - crashing simulation OpenFOAM 19 February 8, 2011 08:38
How to solve a scalar equation with Fluent Tomik FLUENT 1 January 8, 2006 07:18
how solve a scalar equation with Fluent tomik FLUENT 0 January 5, 2006 07:38

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