CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > CFX

How to calculate grad Electric Potential?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   September 21, 2003, 22:32
Default How to calculate grad Electric Potential?
  #1
Miko
Guest
 
Posts: n/a
Hi all1

If I want to usr user subroutine to calculate the gradation of electric potential which is a scalar. How can implement it into CFX5.5.1? Thank you!

Miko
  Reply With Quote

Old   September 22, 2003, 09:05
Default Re: How to calculate grad Electric Potential?
  #2
Robin
Guest
 
Posts: n/a
Hi Miko,

There is no need to implement this yourself. Have a look through the doc on User Fortran and you will see that gradients can be accessed directly within your user subroutine through the USER_GETVAR call.

Regards, Robin
  Reply With Quote

Old   September 22, 2003, 21:15
Default Re: How to calculate grad Electric Potential?
  #3
Miko
Guest
 
Posts: n/a
Hi Robin,

Thank you! I will read it at once! Thank you!

Miko
  Reply With Quote

Old   October 10, 2003, 05:49
Default Re: How to calculate grad Electric Potential?
  #4
windhair1
Guest
 
Posts: n/a
I just want to know how do you imply electro potential modeling in your simulation, a simple user scalar or more complex model? what is the difference between CFX 5.5.1 and cfx 4.4 in this part.

THx
  Reply With Quote

Old   October 11, 2003, 13:08
Default Re: How to calculate grad Electric Potential?
  #5
jeff
Guest
 
Posts: n/a
Electric potential is simply a laplace equation (i.e. diffusion only). All you need to do is solve a user scalar for potential. You can then apply constant voltages (phi = Const) on your electrode walls, or a zero flux condition for insulators (this is the default for walls). There are however, two things that are required:

1) You must turn off convection for the potential field (i.e. current is NOT washed downstream with the fluid). I think Robin specified a means of doing this in CCL some time back.

2) It is handy to set a zero flux condition on inlets and outlets as well. Outlets and openings are no problem, this will happen automatically as long as the flow is "out" and not in. Inlets are another issue. In CFX-4 I used to set the INLET boundary value based on the value obtained "just inside" the domain on the first adjacent node. This, in effect, gave a zero flux condition which worked quite well. I am not sure how to do this in CFX-5.
  Reply With Quote

Old   October 14, 2003, 09:02
Default Re: How to calculate grad Electric Potential?
  #6
Robin
Guest
 
Posts: n/a
...specify your scalar to be solved as a transport equation. Then, manually edit your CCL and change:

Option = Transport Equation

to

Option = Diffusive Transport Equation

Regards, Robin
  Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to calculate electric field strength andrek OpenFOAM Running, Solving & CFD 15 November 20, 2010 09:12
Variable name for electric potential Vignamitra Main CFD Forum 0 July 10, 2009 04:34
Electric Field calculation JamesT Phoenics 5 May 31, 2007 04:44
UDS for electric potential! dong FLUENT 1 January 23, 2007 00:41
how to calculate electrical potential with UDF? josh FLUENT 4 January 24, 2006 12:34


All times are GMT -4. The time now is 20:00.