potentialFoam porousBafflePressure turbulence
Foamers,
As a preface, I'm just starting to dig into the openfoam code. So if I say something silly or ask an obvious question, please just roll with it. :cool: I'm attempting to modify the porousBafflePressure boundary condition in OF so that it is compatible with potentialFoam. Currently the porousBafflePressure boundary condition requires that a turbulence model be present, and thus throws an error when I run potentialFoam. I'd like the BC to run with a constant nu if potentialFoam is called. A code snippet of the original incompressible half of the BC is below... Code:
if (phi.dimensions() == dimensionSet(0, 3, -1, 0, 0)) Code:
if (phi.dimensions() == dimensionSet(0, 3, -1, 0, 0)) I appreciate the help! |
Hi Brock,
As far as I know, you do know have any means of detecting, whether the solver is potentialFoam, but there might be hidden something in the Time object. You could try to track down, where the solver-name in the header of the log file is written. That aside, I believe it is a bad approach. I would rather propose that you make use of the foundObject and its bolean return. If it returns true, then a turbulence model is found, and you are not running potentialFoam, otherwise you are running potentialFoam, and you can apply your modifications. Kind regards, Niels |
Quote:
I have another question regarding the loading of the transportProperties dictionary. It appears that potentialFoam does not load this inside its createFields.H source code, and therefore isn't available to me when I try to look it up via lookupObject. I think I need to stick one of these somewhere... Code:
IOdictionary transportProperties What's the best way to load transportProperties for use by the porousBafflePressure boundary condition? Thanks again for any suggestions you can provide! |
Hi Brock,
Before I answer you question, allow me to ask: "What is the meaning of having the viscosity included in a solver, which solves for an inviscid fluid?" Kind regards, Niels |
All times are GMT -4. The time now is 15:57. |