|
[Sponsors] |
[OpenFOAM] PlotOverLine gives NaN values on surface sample |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 23, 2024, 10:47 |
PlotOverLine gives NaN values on surface sample
|
#1 |
New Member
Ege Batmaz
Join Date: Dec 2018
Location: Germany
Posts: 19
Rep Power: 8 |
Hi,
I am facing a small issue when I plot my 2D data over a line. I used this function to create my VTK format surface data: Code:
zSlice1 { type surfaces; libs ( "libsampling.so" ); writeControl runTime; writeInterval 0.01; format binary; fields ( U T p_vapor k epsilon nut alphat rhok ); interpolationScheme cellPoint; surfaceFormat vtk; surfaces ( zC1 { type cuttingPlane; planeType pointAndNormal; pointAndNormalDict { point ( 0 0 0 ); normal ( 0 0 1 ); } interpolate true; } ); } Is this a bug or a numerical situation where some data is not exactly at z = 0 plane? You can see how the plot looks like from the attachment. For every field (T, U, p ...), same locations are missing. However, missing locations change when I plot a different line, but always with holes in it. Best regards, Ege Edit: The missing points are not related with the local mesh density, since it is a very uniform mesh and contains only block cells. |
|
March 24, 2024, 07:56 |
|
#2 |
New Member
Ege Batmaz
Join Date: Dec 2018
Location: Germany
Posts: 19
Rep Power: 8 |
Okay I solved the issue by changing my cutting plane z-axis point from 0 to 0.001:
Code:
zC1 { type cuttingPlane; planeType pointAndNormal; pointAndNormalDict { point ( 0 0 0.001 ); normal ( 0 0 1 ); } interpolate true; } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
icoFoam, pisoFoam, pimpleFoam unsuccessful transient solution of laminar flow channel | Andrew Gow | OpenFOAM Running, Solving & CFD | 0 | December 24, 2022 12:13 |
problem during mpi in server: expected Scalar, found on line 0 the word 'nan' | muth | OpenFOAM Running, Solving & CFD | 3 | August 27, 2018 05:18 |
thermoPhysical: simulation crashes with perfectGas-rhoCoeffs | piu58 | OpenFOAM Running, Solving & CFD | 1 | December 24, 2017 11:42 |
[CFD-Post] velocity values from user surface | iltis | CFX | 1 | January 11, 2017 14:16 |
sample: free surface & more | Phicau | OpenFOAM Post-Processing | 2 | October 11, 2011 11:19 |