|
[Sponsors] |
Boundary condition cannot find volScalarField |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 13, 2014, 14:31 |
Boundary condition cannot find volScalarField
|
#1 |
Member
Chris
Join Date: Aug 2012
Location: Calgary, Alberta, Canada
Posts: 77
Rep Power: 14 |
So I've added in non-constant gamma for the totalTemperature boundary condition by having it lookup a value from the solver (exactly the same way other boundary conditions look up say rho). I'm confident this implementation is correct because it's solving fine on my development machine.
However, when I drop the code onto our cluster the boundary condition cannot find Cp. Code:
request for volScalarField Cp from objectRegistry region0 failed available objects of type volScalarField are 21 ( ... alpha ... ) Code:
volScalarField alpha ( IOobject ( "alpha", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), turbulence->alphaEff() ); volScalarField Cp ( IOobject ( "Cp", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE ), thermo.Cp() ); It also does not work if I declare Cp at the start of the time loop: Code:
while (runTime.run()) { volScalarField Cp = thermo.Cp(); That said, there is absolutely no reason it shouldn't be able to find the volScalarField in the first place. Any ideas? |
|
March 18, 2014, 18:17 |
|
#2 |
Member
Chris
Join Date: Aug 2012
Location: Calgary, Alberta, Canada
Posts: 77
Rep Power: 14 |
So I got this to work. I think the solution outlines some underlying ignorance of mine with respect to the volScalarField class and the object registry. The way I got it to work was declaring Cp as:
Code:
volScalarField Cp ( IOobject ( "Cp", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE ), mesh, dimensionedScalar("Cp", dimensionSet(0,2,-2,-1,0), 1) ); Maybe someone more knowledgeable can explain why the declaration above worked for alpha but not Cp and why this is necessary. If not I'm sure I'll be looking through the class one day and have an AHA moment. How I managed to get it to run on my test machine is also a magical mystery, maybe someone updated a version somewhere without my knowledge. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
No-slip condition for non-resolved boundary layer in open channel banks | Lupocci | Main CFD Forum | 1 | January 17, 2013 04:11 |
inlet velocity boundary condition | murali | CFX | 5 | August 3, 2012 09:56 |
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug | unoder | OpenFOAM Installation | 11 | January 30, 2008 21:30 |
Rotating interpolated boundary condition | hani | OpenFOAM Running, Solving & CFD | 0 | July 4, 2006 08:09 |
The Boundary Condition about the Flat Plate | boing | Main CFD Forum | 1 | January 6, 2002 17:53 |