|
[Sponsors] |
Accessing other variables in defining boundary condition |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 25, 2009, 03:36 |
Accessing other variables in defining boundary condition
|
#1 |
New Member
Cynthia Poon
Join Date: Mar 2009
Posts: 4
Rep Power: 17 |
Dear All,
I am going to write a boundary conditon by the fvPatchFields like this: grad(Ux) = function of k where Ux = x-component of Velocity; k = turbulent kinetic energy; In my fvPatchFields class, I obtain k by writing this: const fvPatchField<scalar>& k = patch().lookupPatchField<volScalarField,scalar>("k "); The boundary condition compile successfully, but when I start running my case, an error message like this appear: request for volScalarField k from objectRegistry region0 failed available objects of type volScalarField are 3 ( p T CdA ) All p, T and CdA are defined in createField.C of my solver, while the k is first defined inside another class. Is it because k is the private data of RAS/kEpsilon Model, so I cannot get an access to this private data? Or my code quoted above is wrong? Would anybody please kindly give me an idea on how can I access that volScalarField variable? I long for the help! Regards, Cynthia |
|
September 27, 2021, 06:28 |
|
#2 |
Member
Join Date: Jun 2019
Posts: 41
Rep Power: 7 |
Hello. I've exacly the same problem 12 years after you.
Does someone has a solution ? Is it possible to access a turbulence-related quantity in this way ? I use OF8.
__________________
« Debugging is what CFD is about. 5 minutes to modify your code, 5 months to find why it does not work anymore. » |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
inlet velocity boundary condition | murali | CFX | 5 | August 3, 2012 08:56 |
outlet boundary condition | Nina Schiepel | CFX | 2 | July 12, 2008 15:27 |
spanwiperiodic boundary condition for LES | Sungho Yoon | CFX | 5 | July 8, 2008 06:21 |
help in defining boundary condition | rama krishna | FLUENT | 2 | July 25, 2005 04:59 |
Pressure Boundary Condition | Matt Umbel | Main CFD Forum | 0 | January 11, 2002 10:06 |