|
[Sponsors] |
September 21, 2003, 23:32 |
How to calculate grad Electric Potential?
|
#1 |
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 |
|
September 22, 2003, 10:05 |
Re: How to calculate grad Electric Potential?
|
#2 |
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 |
|
September 22, 2003, 22:15 |
Re: How to calculate grad Electric Potential?
|
#3 |
Guest
Posts: n/a
|
Hi Robin,
Thank you! I will read it at once! Thank you! Miko |
|
October 10, 2003, 06:49 |
Re: How to calculate grad Electric Potential?
|
#4 |
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 |
|
October 11, 2003, 14:08 |
Re: How to calculate grad Electric Potential?
|
#5 |
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. |
|
October 14, 2003, 10:02 |
Re: How to calculate grad Electric Potential?
|
#6 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to calculate electric field strength | andrek | OpenFOAM Running, Solving & CFD | 16 | November 14, 2015 08:25 |
Variable name for electric potential | Vignamitra | Main CFD Forum | 0 | July 10, 2009 05:34 |
Electric Field calculation | JamesT | Phoenics | 5 | May 31, 2007 05: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 |