- Thank you received: 0
Smooth approximation of point data
4 years 7 months ago #2538
by Gotya
Smooth approximation of point data was created by Gotya
Hey,
I'm writing CFD code to model the tides in estuaries. Let's say I have some measurement data of the bathymetry on an irregular grid.
What is the best way in NGSolve to create a smooth (C1 or higher) CoefficientFunction/GridFunction that interpolates this data?
I have seen several other posts:
An other suggestion is to use the VoxelCoefficient functions. It seems that VoxelCoefficients are piecewise constant or interpolate the data linearly only.
Lastly, BSpline CoefficientFunctions are suggested. However, can BSpline CFs be used to represent a surface?
Could you provide a MWE?
Best,
Gotya
I'm writing CFD code to model the tides in estuaries. Let's say I have some measurement data of the bathymetry on an irregular grid.
What is the best way in NGSolve to create a smooth (C1 or higher) CoefficientFunction/GridFunction that interpolates this data?
I have seen several other posts:
- ngsolve.org/forum/ngspy-forum/1016-impor...ay-into-gridfunction
- ngsolve.org/forum/ngspy-forum/1045-ngsol...nly-point-evaluation
- ngsolve.org/forum/ngspy-forum/1043-coeff...m-interpolation-list
An other suggestion is to use the VoxelCoefficient functions. It seems that VoxelCoefficients are piecewise constant or interpolate the data linearly only.
Lastly, BSpline CoefficientFunctions are suggested. However, can BSpline CFs be used to represent a surface?
Could you provide a MWE?
Best,
Gotya
Time to create page: 0.099 seconds