CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Electric Field (UDF) - FLUENT

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 2, 2015, 06:01
Default Electric Field (UDF) - FLUENT
  #1
RGI
New Member
 
A.A
Join Date: Nov 2015
Posts: 6
Rep Power: 11
RGI is on a distinguished road
Good morning everyone ...

I am doing a research using FLUENT, and I am trying to introduce an electric field to FLUENT through a UDF. The electric field is to be constant with a value that the user would define.

I have read that one can do that by solving the poissons equation for applied or induced potential, where the derivative of the potential can be taken to get the electric field. Such thing can be done by defining a UDF that I am not fully aware of.

I would appreciate it if someone can help in defining this UDF or if someone has an easier approach/way to define an electric field to FLUENT ...

Please note that the built in module MHD does not suit my problem ...

Thank you in advance ...

Kind regards
RGI is offline   Reply With Quote

Old   November 8, 2015, 04:10
Default
  #2
RGI
New Member
 
A.A
Join Date: Nov 2015
Posts: 6
Rep Power: 11
RGI is on a distinguished road
Any one who can help?
RGI is offline   Reply With Quote

Old   November 9, 2015, 01:10
Default
  #3
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
I would have recommended the MHD module as a start

Can you elaborate on what you hope to accomplish by adding a constant electric field? If you want to define a constant electric field, it's like defining a constant scalar field or defining a global constant (like pi). This part is trivial and you do not need a poisson equation for it (it's constant everywhere). So what do you plan to do after? If you plan to do charged particle simulations in a fluid flow then you're back to to MHD.
LuckyTran is offline   Reply With Quote

Old   November 13, 2015, 14:31
Default
  #4
RGI
New Member
 
A.A
Join Date: Nov 2015
Posts: 6
Rep Power: 11
RGI is on a distinguished road
Hi ...

Many thanks Mr. LuckyTran for your reply ... I really appreciate it ...

Indeed I am planning to do charged particle simulations in a fluid flow ...

Can you please guide me on how to do that using the MHD module ...

I was able to load the module into FLUENT. Then, I defined a value for the voltage on two parallel walls where the flow is supposed to pass in between, but no good results were obtained. Actually, nothing at all happened (As if the module wasn't loaded/added). There were no effect on the charged particles ...

I am sure I did something wrong ...

Also, can you check the discussion in the following link (A post written by: vsmkrm298 mentioned something about solving a similar problem by solving the poissons equation for applied or induced potential: http://www.cfd-online.com/Forums/flu...ric-field.html

Your reply is highly appreciated ...

Thank you in advance ...

Kind regards
RGI is offline   Reply With Quote

Old   November 16, 2015, 04:40
Default
  #5
RGI
New Member
 
A.A
Join Date: Nov 2015
Posts: 6
Rep Power: 11
RGI is on a distinguished road
Any one who can help?
RGI is offline   Reply With Quote

Old   November 16, 2015, 11:38
Default
  #6
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Use the MHD module. It's already done for you. If you were to write your own udf, you would just end up remaking the MHD module (which is just a bunch of UDF's).

Did you remember to enable the MHD module after loading it?
LuckyTran is offline   Reply With Quote

Old   November 16, 2015, 13:20
Default
  #7
RGI
New Member
 
A.A
Join Date: Nov 2015
Posts: 6
Rep Power: 11
RGI is on a distinguished road
Hi ...

Sure, the MHD was enabled, but as I said: I was able to load/enable the module into FLUENT. Then, I defined a value for the voltage on two parallel walls where the flow is supposed to pass in between, but nothing at all happened (As if the module wasn't loaded/added). There were no effect on the charged ...

If you have any experience in using the MHD module or defining the UDFs, can you please provide/guide me through them ...

Thanks in advance ...

Rrgards
RGI is offline   Reply With Quote

Old   November 19, 2015, 01:08
Default
  #8
New Member
 
Ganesh K C
Join Date: Oct 2014
Location: Tiruchirappalli, India
Posts: 29
Rep Power: 12
kcgmech is on a distinguished road
how to enable MHD module in ANSYS Fluent 12 ?
__________________
--
K.C.Ganesh
Research Scholar
NIT Trichy
India
kcgmech is offline   Reply With Quote

Old   March 5, 2022, 10:30
Default
  #9
Member
 
sina
Join Date: Nov 2021
Posts: 41
Rep Power: 5
sina_sls is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
Use the MHD module. It's already done for you. If you were to write your own udf, you would just end up remaking the MHD module (which is just a bunch of UDF's).

Did you remember to enable the MHD module after loading it?
Hello Lucky Tran,
I want to show Electric Field in Result, Did I use correct way for doing this? I attached the picture

Best Regards,
Attached Images
File Type: png 1.png (28.0 KB, 65 views)
sina_sls is offline   Reply With Quote

Reply

Tags
electric field, fluent, udf, uds


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Foam::error::PrintStack almir OpenFOAM Running, Solving & CFD 92 May 21, 2024 08:56
Write a UDF script For FLUENT!! Martin1 Fluent UDF and Scheme Programming 25 June 22, 2015 04:56
fluent udf problem: write specific data for every iteration in a file. nnvoro Fluent UDF and Scheme Programming 1 May 27, 2013 16:26
fluent UDF external library lapack problem Rick FLUENT 0 May 7, 2008 11:16
UDF problem caused by various version of Fluent Yurong FLUENT 3 January 15, 2006 11:57


All times are GMT -4. The time now is 15:04.