CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Interpolate internal field onto patch / boundary (http://www.cfd-online.com/Forums/openfoam-programming-development/125277-interpolate-internal-field-onto-patch-boundary.html)

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.

MY PROBLEM:

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

Code:

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

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,
Jonas


All times are GMT -4. The time now is 16:19.