mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
- improvement documentation for surface sampling.
- can now specify alternative sampling scheme for obtaining the
face values instead of just using the "cell" value. For example,
sampleScheme cellPoint;
This can be useful for cases when the surface is close to a boundary
cell and there are large gradients in the sampled field.
- distanceSurface now handles non-closed surfaces more robustly.
Unknown regions (not inside or outside) are marked internally and
excluded from consideration. This allows use of 'signed' surfaces
where not previously possible.
114 lines
1.9 KiB
C++
114 lines
1.9 KiB
C++
// -*- C++ -*-
|
|
|
|
// ************************************************************************* //
|
|
|
|
#include "fieldTransfer"
|
|
|
|
massflow
|
|
{
|
|
${__surfaceFieldValue}
|
|
|
|
regionType surface;
|
|
name plane1;
|
|
|
|
operation areaNormalIntegrate;
|
|
|
|
fields ( rhoU );
|
|
}
|
|
|
|
areaIntegrate
|
|
{
|
|
${__surfaceFieldValue}
|
|
|
|
regionType surface;
|
|
name plane1;
|
|
|
|
operation weightedAreaIntegrate;
|
|
weightField rhoU;
|
|
fields ( T );
|
|
}
|
|
|
|
// Inflow uniformity
|
|
UI1
|
|
{
|
|
${__surfaceFieldValue}
|
|
|
|
regionType surface;
|
|
name plane1;
|
|
|
|
operation uniformity;
|
|
fields ( U T );
|
|
}
|
|
|
|
|
|
// Uniformity after the bend
|
|
UI2
|
|
{
|
|
${__surfaceFieldValue}
|
|
|
|
regionType surface;
|
|
name plane2;
|
|
|
|
operation uniformity;
|
|
fields ( U T );
|
|
}
|
|
|
|
|
|
// Uniformity on sampled surface
|
|
UI3
|
|
{
|
|
${__surfaceFieldValue}
|
|
|
|
regionType surface;
|
|
name plane3;
|
|
|
|
operation uniformity;
|
|
fields ( U T );
|
|
}
|
|
|
|
|
|
// Inflow uniformity, but use a scalar field for weighting
|
|
// Since this field is quite uniform, there should be no difference
|
|
T_UI1
|
|
{
|
|
${__surfaceFieldValue}
|
|
|
|
regionType surface;
|
|
name plane1;
|
|
|
|
operation weightedUniformity;
|
|
weightField T;
|
|
fields ( U );
|
|
}
|
|
|
|
|
|
// rhoU-weighted uniformity, including weighting U too (weird but possible)
|
|
rhoU_UI1
|
|
{
|
|
${__surfaceFieldValue}
|
|
|
|
regionType surface;
|
|
name plane1;
|
|
|
|
operation weightedUniformity;
|
|
weightField rhoU;
|
|
fields ( p rho U rhoU );
|
|
}
|
|
|
|
|
|
// rhoU-weighted uniformity
|
|
rhoU_UI2
|
|
{
|
|
${__surfaceFieldValue}
|
|
|
|
regionType surface;
|
|
name plane2;
|
|
|
|
operation weightedUniformity;
|
|
weightField rhoU;
|
|
fields ( p rho U rhoU );
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|