CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   What is meshsurfaceInterpolationdeltaCoeffs (https://www.cfd-online.com/Forums/openfoam/61030-what-meshsurfaceinterpolationdeltacoeffs.html)

 kupiainen July 7, 2005 06:29

Dear all what is mesh.surface

Dear all what is
mesh.surfaceInterpolation::deltaCoeffs()?
best regards

 henry July 7, 2005 06:33

1/distance between cell centre

1/distance between cell centres across the faces (with adjustment for non-orthogonality).

 kupiainen July 7, 2005 06:53

I am afraid that these values

I am afraid that these values are not computed correctly in my 1D application. I have a uniform mesh [-5,5] with 1000 cells generated with blockMesh, which would mean that mesh.surfaceInterpolation::deltaCoeffs() should be uniformly 100, but instead

DeltaCoeffs= dimensions [0 -1 0 0 0 0 0];

internalField nonuniform List<scalar>
999
(
40956.7
40915.3
40873.9
40832.5
40791.1
40749.8
40708.4
40667
40625.6
40584.2
....

611.791
572.431
533.179
494.062
455.114
416.384
377.936
339.869
302.324
265.524
229.827
195.835
164.614
138.068
119.387
)
;

boundaryField
{
left
{
type calculated;
value uniform -21966.1;
}
right
{
type calculated;
value uniform 225.004;
}
empty
{
type empty;
}
}
which is wrong.
I tested also for a 2D grid, but here the output is correct. What are boundaryFields used for? For the 2D grid these values are twice the internalfield.

Is the problem in blockMesh or elsewhere you think?
my blockMeshDict looks like
convertToMeters 1;

vertices
(
(-5 0 0)
(5 0 0)
(5 0.01 0)
(-5 0.01 0)
(-5 0 0.01)
(5 0 0.01)
(5 0.01 0.01)
(0 0.01 0.01)
);

blocks
(
hex (0 1 2 3 4 5 6 7) (1000 1 1) simpleGrading (1 1 1)
);

edges
(
);

patches
(
patch left
(
(0 4 7 3)
)
patch right
(
(1 2 6 5)
)
empty empty
(
(0 1 5 4)
(5 6 7 4)
(3 7 6 2)
(0 3 2 1)
)
);

mergePatchPairs
(
);

best regards

 niklas July 7, 2005 07:56

Hi, Have you checked, loook

Hi,

Have you checked, loooked at, your mesh?
It looks, to me, like the last point is incorrect/misplaced.

Which, again to me, is indicated by these values not being what you expect.

N

 kupiainen July 7, 2005 08:25

Correct, my mistake. Thank you

Correct, my mistake. Thank you Niklas!
Now it works, but I'm still puzzeled about the boundary values. Why are they twice the inner values?

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