TAGGED: cfd-udf-fleunt, current-density, mhd, uds
-
-
July 31, 2022 at 2:23 pm
sinasalahshour74
SubscriberHello
I want to set sinusoidal value of electric potential (MHD module) for a wall, first i try expression but i faced to error :
Error: wta(2nd) to string_eq
Error Object: __expr__
 then i try Profile and UDF profile , but agian i faced to problem , when i use them it consider the wall to insulated.
Could someone help me how can i set sinusoidal value for current density ( Electric Potential MHD) ?
Best Regards,
-
August 2, 2022 at 4:44 am
Rahul Mule
Ansys EmployeeHi,
Could you please share the expession / UDF used for current density profile ?
Regards,Â
Rahul
-
August 2, 2022 at 5:12 am
sinasalahshour74
SubscriberThank you for your response,
this is my UDF profile code:
#include "udf.h"#define PI 3.141592654ÂDEFINE_PROFILE(current_density,thread,position){Âface_t f;real t = CURRENT_TIME;Âbegin_f_loop(f,thread){ÂF_PROFILE(f,thread,position)=13*sin((2*PI/0.04)*t);Âend_f_loop(f,thread)}}ÂThis is expression :Â13*sin((2*PI/0.04[s])*Time)ÂI try Define Adjust , but it dosent work like which i want :# include "udf.h"ÂDEFINE_ADJUST(adjust_gradient, domain){int i = 13.;Thread *t = Lookup_Thread(domain, i);face_t f;real tt = CURRENT_TIME;Âbegin_f_loop (f,t){F_UDSI(f,t,0) = 0.02*tt;}end_f_loop (f,t)}ÂRegards,
-
-
August 3, 2022 at 7:53 am
Rahul Mule
Ansys EmployeeHi,Â
Unload the previously loaded UDF and then use expression. Better if you use latest version.
And go through the entire Fluent setup visiting each panel and make sure that the values are enteredÂ
correct format.Regards,
Rahul
-
August 3, 2022 at 9:14 am
sinasalahshour74
SubscriberThank you for your response,
I try expression without UDF , but when i click on MHD module this error is being shown :
Error: wta(2nd) to string_eq
Error Object: __expr__
And when i choose the wall in MHD boundary condition box this error is being shown :
Error: ASSV: invalid argument [2]: improper list
Error Object: #f
when i run the fluent , this message is being shown:
===============Message from the Cortex Process================================
Compute processes interrupted. Processing can be resumed.
==============================================================================
Â
Regards
-
-
August 5, 2022 at 7:46 am
Rahul Mule
Ansys Employee - wta errors often occur when a case file of a recent FLUENT version is to be loaded into an older one
 - it also occur if (in the Workbench) an incompatible network is to be loaded to a set-file
Please check which cause is likely to occur to you.Â
Hope that helps you !!
Regards,
Rahul
-
August 11, 2022 at 4:16 pm
sinasalahshour74
SubscriberThank you for your response
version is the same , i don't understand what do you mean about incompatible network?
Does MHD module support transient value ?, in one of Forum someone said we can't use expression and parameter for MHD module , this is true?
I ask the ANSYS Group but i havent receive answer yet.
Regards
-
-
August 16, 2022 at 9:07 am
Rahul Mule
Ansys EmployeeHi,Â
The MHD model does not allow expressions, so the MHD model inputs were out-of-sync with the boundary conditions.
Regards,
Rahul.
-
August 16, 2022 at 1:33 pm
sinasalahshour74
SubscriberDear Rahul,
Thanks, so there isn't any way to set transient value for boundary condition? like hack or special UDF
Regards,
-
-
August 16, 2022 at 2:11 pm
Rahul Mule
Ansys EmployeeHiÂ
Please go through 29.3. Using the Ansys Fluent MHD Module for more information about case setup using MHD module.
Regards.
-
August 16, 2022 at 5:56 pm
sinasalahshour74
SubscriberDear Rahul,
I have read this part , but i can't find the Note which about cant use expression or UDF for boundary condition in Electric Potential part , How can i make sure that we can't use transient value for boundary condition in Electric potenial part in MHD module
Regards,
-
-
August 16, 2022 at 5:59 pm
-
August 17, 2022 at 5:48 am
sinasalahshour74
SubscriberHi,
Thank you, I can't access and sign up the site you linked , i used Help Doc software 2021 and does not have this Note, Thansks.
Best Regards,
-
-
- The topic ‘Sinusoidal value for current density (electric potential value in MHD)’ is closed to new replies.
-
3377
-
1052
-
1050
-
886
-
842
© 2025 Copyright ANSYS, Inc. All rights reserved.