CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   How to calculate grad Electric Potential? (https://www.cfd-online.com/Forums/cfx/19905-how-calculate-grad-electric-potential.html)

Miko September 21, 2003 22:32

How to calculate grad Electric Potential?
 
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

Robin September 22, 2003 09:05

Re: How to calculate grad Electric Potential?
 
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

Miko September 22, 2003 21:15

Re: How to calculate grad Electric Potential?
 
Hi Robin,

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

Miko

windhair1 October 10, 2003 05:49

Re: How to calculate grad Electric Potential?
 
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

jeff October 11, 2003 13:08

Re: How to calculate grad Electric Potential?
 
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.

Robin October 14, 2003 09:02

Re: How to calculate grad Electric Potential?
 
...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


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