|
[Sponsors] |
scalar to be replaced by volScalarField in equation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 15, 2011, 14:24 |
scalar to be replaced by volScalarField in equation
|
#1 |
Member
Join Date: Nov 2010
Posts: 54
Rep Power: 16 |
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. |
|
April 18, 2011, 09:15 |
|
#2 |
Senior Member
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 24 |
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 |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |