TAGGED: udf
-
-
December 5, 2024 at 8:51 am
himanshujoshi
SubscriberIs there any built-in function that can be used to get minimum distance between two walls in a UDF.Â
-
December 5, 2024 at 11:24 am
Rob
Forum ModeratorThere aren't, and it's non trivial to code up with UDFs. You may be able to repurpose the contact detection functions in the moving mesh section of the UDF manual, but they may not trigger until near contact.Â
-
December 5, 2024 at 11:49 am
himanshujoshi
SubscriberThanks Rob for your comments. I am actually trying to build a contact detection model itself, as the in-built contact detection model has issues with density based explicit solver when used with explicit time integration scheme.Â
any leads to calculate minimum distance between the moving surfaces would help me get a step closer. Â
-
December 5, 2024 at 2:05 pm
Rob
Forum ModeratorI can only point you to the documentation for the coding element. Given PBCS is good for Mach 2-3 I don't know if you really need density based. The other option is not to look for wall separation but instead look at position: ie if the ground is at x=0 make sure the object can't get below x=0.5 for example.Â
-
- You must be logged in to reply to this topic.
-
2918
-
970
-
852
-
599
-
591
© 2025 Copyright ANSYS, Inc. All rights reserved.