|
[Sponsors] |
August 28, 2016, 09:27 |
Interpolation cell -> face
|
#1 |
Member
Join Date: Jun 2012
Posts: 76
Rep Power: 13 |
Hello everybody,
interpolation of cell values (e.g. volScalarField) to face values (e.g. surfaceScalarField) for the complete domain is quite straightforward - see rhoCentralFoam: Code:
surfaceScalarField rho_pos ( fvc::interpolate(rho, pos, "reconstruct(rho)") ); Kind regards Martin |
|
April 22, 2018, 16:37 |
|
#2 |
New Member
Yuchen Zhang
Join Date: Apr 2018
Posts: 3
Rep Power: 8 |
you can use ref() to get a reference to its Internal field and then you can access each value surface value.
for example, surfaceScalarField gradU(...); ScalarField gradUIn=gradU.ref(); gradUIn[faceI]= ...; |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
udf problem | jane | Fluent UDF and Scheme Programming | 37 | February 20, 2018 04:17 |
[snappyHexMesh] No layers in a small gap | bobburnquist | OpenFOAM Meshing & Mesh Conversion | 6 | August 26, 2015 09:38 |
[blockMesh] non-orthogonal faces and incorrect orientation? | nennbs | OpenFOAM Meshing & Mesh Conversion | 7 | April 17, 2013 05:42 |
Hydrostatic Pressure and Gravity | miliante | OpenFOAM Running, Solving & CFD | 132 | October 7, 2012 22:50 |
How to determine the direction of cell face vectors on processor patches | sebastian_vogl | OpenFOAM Running, Solving & CFD | 0 | October 27, 2009 08:47 |