October 6, 2021, 10:27
|
Wrong temperatures with postProcess functions
|
#1
|
New Member
Adrian Kwiatkowski
Join Date: Oct 2021
Posts: 2
Rep Power: 0
|
Hello everyone!
I'm trying to postProcess a case by using linear and surface sampling and I recieved wrong results of temperature, the temperature is equal to 193K in whole domain, while the other quantities seemes to be fine. I checked the time/T results itself and numbers there are fine, paraview does not have any troubles with opening it.
Functions inside controlDict
Code:
functions
{
#includeFunc mag(U)
linesample
{
type sets;
libs (sampling);
writeControl timeStep;
outputInterval 500;
interpolationScheme cellPoint;
setFormat csv;
sets
(
line_horiz_1
{
type uniform;
axis x;
start (0 -0.05 0.100);
end (4.525 -0.05 0.100);
nPoints 1000;
}
line_horiz_2
{
type uniform;
axis x;
start (0 -0.05 1.905);
end (4.525 -0.05 1.95);
nPoints 1000;
}
line_horiz_3
{
type uniform;
axis x;
start (0 -1.975 1.905);
end (4.525 -1.975 1.95);
nPoints 1000;
}
line_horiz_4
{
type uniform;
axis x;
start (0 -1.975 0.100);
end (4.525 -1.975 0.100);
nPoints 1000;
}
line_vert_1
{
type uniform;
axis z;
start (0.1 -1.975 0);
end (0.1 -1.975 2.05);
nPoints 1000;
}
line_vert_2
{
type uniform;
axis z;
start (4.425 -1.975 0);
end (4.425 -1.975 2.05);
nPoints 1000;
}
line_vert_3
{
type uniform;
axis z;
start (0.1 -0.05 0);
end (0.1 -0.05 2.05);
nPoints 1000;
}
line_vert_4
{
type uniform;
axis z;
start (4.425 -0.05 0);
end (4.425 -0.05 2.05);
nPoints 1000;
}
Measurment_points
{
type cloud;
axis xyz;
points ((0.1 -0.05 0.1) (0.1 -1.975 0.1) (0.1 -0.05 1.95) (0.1 -1.975 1.95) (4.425 -0.05 0.1) (4.425 -1.975 0.1) (4.425 -0.05 1.95) (4.425 -1.975 1.95));
}
);
fields (T mag(U) p p_rgh U);
}
/*
Measurment_points
{
type cloud;
axis xyz;
points ((0.1 -0.1 0.1) (0.1 -1.925 0.1) (0.1 -0.1 1.95) (0.1 -1.925 1.95) (4.425 -0.1 0.1) (4.425 -1.925 0.1) (4.425 -0.1 1.95) (4.425 -1.925 1.95));
interpolationScheme cellPoint;
setFormat csv;
writeControl timeStep;
outputInterval 500;
fields (T mag(U) p p_rgh );
}
*/
Surfaces
{
type surfaces;
libs (sampling);
interpolationScheme cellPoint;
surfaceFormat vtk;
writeControl timeStep;
outputInterval 500;
fields (T mag(U) p p_rgh U);
surfaces
(
surface4
{
type plane;
planeType pointAndNormal;
pointAndNormalDict
{
point (0.1 -0.05 0.1);
normal (0 1 0 );
}
triangulate true;
}
surface3
{
type plane;
planeType pointAndNormal;
pointAndNormalDict
{
point (0.1 -0.05 0.1);
normal (0 0 1 );
}
triangulate false;
}
surface5
{
type plane;
planeType pointAndNormal;
pointAndNormalDict
{
point (0.1 -0.05 0.1);
normal (1 0 0 );
}
triangulate false;
}
surface2
{
type plane;
planeType pointAndNormal;
pointAndNormalDict
{
point (4.425 -1.975 1.95);
normal (0 1 0 );
}
triangulate false;
}
surface1
{
type plane;
planeType pointAndNormal;
pointAndNormalDict
{
point (4.425 -1.975 1.95);
normal (0 0 1 );
}
triangulate false;
}
surface6
{
type plane;
planeType pointAndNormal;
pointAndNormalDict
{
point (4.425 -1.975 1.95);
normal (1 0 0 );
}
triangulate false;
}
);
}
}
I uploaded exemplary results, unfortunately I can't upload the T results itself because the file is to big.
If anyone had the same problem or know the solution please let me know.
Thank you all in advance!
Adrian
|
|
|