-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TXTExport
produces duplicates
#819
Comments
I think to start with we could at least make sure that values in the txt file are sorted by x |
Based on your recent example , such filtering might be more complex. |
Yes for traps funny things could happen but I believe we should still do this as I don't expect it would drastically alter the profile |
if vertices of a mesh do not match the interfaces (borders), shall we try to keep duplicates near the interfaces? Say: model.materials = [
F.Material(
id=1,
D_0=1,
E_D=0,
S_0=1,
E_S=0,
borders=[0,0.5]
)
F.Material(
id=2,
D_0=1,
E_D=0,
S_0=2,
E_S=0,
borders=[0.5,1.0]
)
]
model.mesh = F.MeshFromVertices(
np.linspace(0, 1, 30)
) The closest vertices to the interface at |
So in your example, we could do something along the lines of: for vertex in vertices:
if not isclose(vertex, interface_x):
# remove duplicate |
I think the first point can be addressed in a separate issue. |
As highlighted by @rekomodo on discourse,
TXTExport
produces duplicates in the output file, what may confuse a user.Some suggestions from @RemDelaporteMathurin to improve this behaviour:
The text was updated successfully, but these errors were encountered: