CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   Interpolate internal field onto patch / boundary (

Jonas October 22, 2013 14:12

Interpolate internal field onto patch / boundary
Hi guys,

i am new to OpenFOAM and now i am having trouble implementing a final step for a new boundary condition. I hope that someone can help me.


I would like to interpolate scalar-values ("interpolatedPatchValues") of a certain patch ("patchName") from an internal-scalar-Field ("internalField").


const volScalarField& internalField = db().lookupObject<volScalarField>

const fvPatchField<scalar> interpolatedPatchValues =
Unknown_INTERPOLATE_function( internalField, "patchName", ???)

I hope that somebody can help me or give me a hint.

Thanks a lot in advance,

All times are GMT -4. The time now is 06:33.