|
[Sponsors] |
July 6, 2021, 08:51 |
How to access a volscalarfield
|
#1 |
New Member
Omair
Join Date: May 2017
Posts: 9
Rep Power: 9 |
Hi everyone,
I am coding a new specie transport library in OpenFOAM. I need to access density which is calculated by the 'equation of state'. I have tried using the following code but no success... Code:
scalar volVectorField& rho_ = rho().db().lookupObject<volVectorField>("rho"); Any help in this regard please. |
|
July 6, 2021, 08:57 |
|
#2 | |
New Member
Omair
Join Date: May 2017
Posts: 9
Rep Power: 9 |
I get the following error with above code...
Quote:
|
||
July 6, 2021, 13:31 |
|
#3 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
Quote:
|
||
Tags |
volscalarfield;scalar |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error message | Bruno_Jorge | Main CFD Forum | 1 | February 5, 2019 12:12 |
namespace Foam | Argen | OpenFOAM | 4 | February 5, 2019 09:55 |
writing execFlowFunctionObjects | immortality | OpenFOAM Post-Processing | 30 | September 15, 2013 07:16 |
How do I access a volScalarField in a submodel of the class radiationModel? | tos | OpenFOAM Programming & Development | 0 | July 9, 2013 07:05 |
Access a volScalarField from BC code | Hisham | OpenFOAM Programming & Development | 6 | November 25, 2011 16:33 |