Boundary condition cannot find volScalarField
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 Code:
volScalarField alpha It also does not work if I declare Cp at the start of the time loop: Code:
while (runTime.run()) That said, there is absolutely no reason it shouldn't be able to find the volScalarField in the first place. Any ideas? |
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 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. |
All times are GMT -4. The time now is 06:59. |