|
[Sponsors] |
November 9, 2017, 12:16 |
build volScalarField from scalarFields
|
#1 |
Member
Joaquín Neira
Join Date: Oct 2017
Posts: 38
Rep Power: 9 |
Hello,
I'm trying to build a volScalarField from a product of two scalarField Code:
dimensionedScalar nu ( "nu", dimViscosity, transportProperties.lookup("nu") ); dimensionedScalar rhoInfValue ( "rhoInf", dimDensity, transportProperties.lookup("rhoInf") ); volScalarField mu ( IOobject ( "mu", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), nu*rhoInfValue ); is there any way to do this? |
|
November 9, 2017, 17:35 |
|
#2 |
Senior Member
|
Hi,
you are trying to make a volScalarField from a product of two dimensionedScalars. So you should use another constructor: this one. In terms of code it is: Code:
volScalarField mu ( IOobject ( "mu", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), mesh, nu*rhoInfValue ); |
|
Tags |
scalarfield, volscalarfield |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error in compiling new drag model | k.farnagh | OpenFOAM Programming & Development | 13 | May 21, 2016 04:08 |
execFlowFunctionObjects - unknown field problem | Toorop | OpenFOAM Post-Processing | 16 | March 14, 2016 04:25 |
using chemkin | JMDag2004 | OpenFOAM Pre-Processing | 2 | March 8, 2016 23:38 |
Building from Source on Windows using Cygwin64 | ericthefatguy | SU2 | 2 | May 12, 2015 19:23 |
writing execFlowFunctionObjects | immortality | OpenFOAM Post-Processing | 30 | September 15, 2013 07:16 |