Open Karl-JT opened 7 months ago
One potential solution could be change the following
invar["area"].append(
np.full(x.shape, triangle_areas[index] / x.shape[0])
)
to
invar["area"].append(
np.full(x.shape, np.sum(triangle_areas) / nr_points)
)
or to enforce at least one sample for each triangle.
Version
1.3.0
On which installation method(s) does this occur?
Docker
Describe the issue
When using an stl file (sphere for example) instead of primitive geometry, the total area of all sampled points are different from the actual total area. This leads to errors on computing drag or lift when summing up the pressure on the surface. The reason is in tessellation geometry sampling. The area of samples are calculated based on each triangle, but some triangle will have zero samples.
Minimum reproducible example
Relevant log output
Environment details
No response
Other/Misc.
No response