필터 지우기
필터 지우기

3D Interpolation around solid regions in volume data

조회 수: 3 (최근 30일)
Barry Smith
Barry Smith 2018년 2월 7일
답변: Ahmet Cecen 2018년 2월 8일
Hello.
I have a large table of 4-D data (X,Y,Z,Pressure) from a CFD simulation which is non-uniform. I have re-sampled using the meshgrid and griddata to produce a linear interpolated uniform dataset. However, there are fixed solid (no flow data) regions within the workspace that are now extending beyond their bounds due to the interpolation process. I have tried flagging the solid regions using a 0 or a NaN but neither has helped to produce accurate boundaries even at a high resolution grid. Is there any a way to avoid the interpolation process using any of the points from the solid region?
  댓글 수: 1
Matt J
Matt J 2018년 2월 8일
편집: Matt J 2018년 2월 8일
Since the data is discrete, how are you able to judge where the true bounds (in continuous space) are supposed to be?

댓글을 달려면 로그인하십시오.

답변 (1개)

Ahmet Cecen
Ahmet Cecen 2018년 2월 8일
If you have geometric knowledge of the invalid regions, one workaround is to eliminate them from the interpolation process. Use griddata or scatteredInterpolant on the data without including the invalid regions. Then you can create a separate binary map of the invalid regions using your geometric knowledge and eliminate them from the result.

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by