-
-
October 24, 2023 at 1:30 pm
Ramesh Chandra Mishra
Subscriber -
October 24, 2023 at 3:13 pm
Rob
Forum ModeratorSome of the derivatives are available in solver, otherwise you may need to look at UDM.Â
-
October 24, 2023 at 3:24 pm
Ramesh Chandra Mishra
SubscriberSo there is no way I can solve this without using UDF?
Â
-
October 24, 2023 at 3:45 pm
Rob
Forum ModeratorPossibly not, check the Derivatives and if you can patch a solver result (concentration) to UDM and if that has an available derivative. Otherwise, you may need a UDF.Â
-
October 24, 2023 at 3:46 pm
Ramesh Chandra Mishra
SubscriberThere is no option for concentration in the derivatives. I was wondering if I can do it using gradient option in expressions?
Â
-
October 24, 2023 at 4:26 pm
Rob
Forum ModeratorI'm not sure there's an option for the gradients in the Expression system. It's rapidly evolving feature so that may change with 2024Rx, otherwise the gradients are available for UDM as UDF macros.Â
-
October 24, 2023 at 4:48 pm
Ramesh Chandra Mishra
SubscriberThis is what I am talking about. But I have a bit problem with this . It's syntax is Gradient
but how to know if it is gradient wrt to x, y or z. Secondly, can you guide me a bit towards UDF. As far as i know, concentration can be obtained by multiplying mass fraction with density. Not so sure about concentration gradient though. Can you help me proceed in this regard?
-
October 24, 2023 at 5:01 pm
Rob
Forum ModeratorConcentration is equivalent to volume fraction, and mass fraction is available so you may need to do some maths to convert.Â
-
October 24, 2023 at 5:36 pm
Ramesh Chandra Mishra
SubscriberThat part is fine by me but suppose I get the concentration, how do I convert it to gradient is my question. I can see macros for temperature and pressure gradient in the manual but could not find one for concentration gradient.
-
October 25, 2023 at 7:02 am
Ramesh Chandra Mishra
SubscriberIs it possible to get the gradient of a variable created in the udf?
-
October 25, 2023 at 8:05 am
Rob
Forum ModeratorCheck the User Defined Memory (UDM) macros - https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v232/en/flu_udf/flu_udf_DataAccessMacros.html%23flu_udf_example_udm_uds_usage
-
- The topic ‘writing an expression involving concentration gradient’ is closed to new replies.
-
3492
-
1057
-
1051
-
966
-
942
© 2025 Copyright ANSYS, Inc. All rights reserved.