|
[Sponsors] |
Accessing an entry from an fvPatchScalarField |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 7, 2016, 14:24 |
Accessing an entry from an fvPatchScalarField
|
#1 |
New Member
Florian
Join Date: Mar 2012
Location: Munich
Posts: 13
Rep Power: 14 |
Dear Foamers,
I would like to access the scalarField of the roughness height Ks from a patch field of nut. By now I get the fvPatchScalarField Code:
const fvPatchScalarField& nutField = bottomFvPatch.lookupPatchField<volScalarField, scalar>("nut"); Info << nutField << endl; Code:
type nutRoughWallFunction; Cmu 0.09; kappa 0.41; E 9.8; Cs uniform 0.5; Ks uniform 0.001; value nonuniform List<scalar> 350 ( 0.000654725 0.000654725 0.000654725 ... Code:
localKs = nutField.lookupEntry("Ks"); Thanks in advance! Florian |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
meshing of a compound volume in GMSH | shawn3531 | OpenFOAM | 4 | March 12, 2015 11:45 |
Problem in3D model processing | mebinitap | OpenFOAM | 2 | December 12, 2014 05:40 |
rhoSimplecFoam Mach0.8 no pressure values | CFDnewbie147 | OpenFOAM Running, Solving & CFD | 16 | November 23, 2013 06:58 |
Converting Starccm+ mesh | Ladnam | OpenFOAM | 0 | September 14, 2011 07:30 |
add entry to wordList | peterwy | OpenFOAM Programming & Development | 3 | October 4, 2010 08:13 |