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

scalar to be replaced by volScalarField in equation

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 15, 2011, 14:24
Default scalar to be replaced by volScalarField in equation
  #1
Member
 
Join Date: Nov 2010
Posts: 54
Rep Power: 16
usergk is on a distinguished road
Hello FOAMers,

I am trying to modify the following equation:


solve
(
fvm::ddt(rho, Yi)
+ mvConvection->fvmDiv(phi, Yi)
- fvm::laplacian
(
(TF*E*(turbulence->mu()+ turbulence->mut())),
Yi, "laplacian(muEff,Yi)"
)
==
parcels.Srho(i)
+ 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,
gk

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

Old   April 18, 2011, 09:15
Default
  #2
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, see in createFields.H file and add a new TF field.

Regards.
__________________
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

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
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 07:27
Source Term on Scalar Transport Equation - crashing simulation alessio.nz 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 09:18.