BC development: how can I access to the patch normal?
Dear Foamer,
I'm currently developing a boundary condition to force a given pressure gradient. For a gradient boundary condition, OpenFOAM needs the normal gradient, for example, a fixed pressure gradient looks like this (in the p file): Code:
outlet Code:
Field<scalar>& gradient = this->gradient(); The problem, I don't now how to access to the patch normal. Any Idea? Cheers, Marcel |
Hi, this is what you need:
Code:
vectorField nVecCell = patch().nf(); Pablo |
All times are GMT -4. The time now is 04:01. |