TAGGED: cfd-udf-fleunt, current-density, mhd, uds
-
-
July 31, 2022 at 2:23 pmsinasalahshour74Subscriber
Hello
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 amRahul MuleAnsys Employee
Hi,
Could you please share the expession / UDF used for current density profile ?
Regards,Â
Rahul
-
August 2, 2022 at 5:12 amsinasalahshour74Subscriber
Thank 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 amRahul MuleAnsys Employee
Hi,Â
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 amsinasalahshour74Subscriber
Thank 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 amRahul MuleAnsys 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 pmsinasalahshour74Subscriber
Thank 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 amRahul MuleAnsys Employee
Hi,Â
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 pmsinasalahshour74Subscriber
Dear 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 pmRahul MuleAnsys Employee
HiÂ
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 pmsinasalahshour74Subscriber
Dear 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 amsinasalahshour74Subscriber
Hi,
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.
- Non-Intersected faces found for matching interface periodic-walls
- Unburnt Hydrocarbons contour in ANSYS FORTE for sector mesh
- Help: About the expression of turbulent viscosity in Realizable k-e model
- Cyclone (Stairmand) simulation using RSM
- error udf
- Diesel with Ammonia/Hydrogen blend combustion
- Fluent fails with Intel MPI protocol on 2 nodes
- Mass Conservation Issue in Methane Pyrolysis Shock Tube Simulation
- Script error Code: 800a000d
- Encountering Error in Heterogeneous Surface Reaction
-
1191
-
513
-
488
-
225
-
209
© 2024 Copyright ANSYS, Inc. All rights reserved.