|
[Sponsors] |
October 6, 2007, 19:09 |
Hello,
I am trying to use Ope
|
#1 |
New Member
Sjaak Verdoold
Join Date: Mar 2009
Posts: 7
Rep Power: 17 |
Hello,
I am trying to use OpenFoam to determine the electric field which then is to be used in some other code. After quite some hassle I got things to work at least slightly (although I still have major problems exporting/extracting the electric field values). I am pretty new to Foam, but when I took a closer look at the electrostaticFoam source I got the impression that the electric field (rhoFlux in the solver) is a surfaceScalarField, so if I am correct consists of scalar values at the surfaces of the mesh cells. However, I think an electric field is always directed and should therefore be a surfaceVectorField or so. Is this correct or am I missing a crucial point here? I tried to change this, but in that process could not get the code to compile anymore due to problems with the various operators and the new type of rhoFlux. Does anyone have comments, ideas, suggestions or anything else about this? Any help would be greatly appreciated! Sjaak |
|
October 7, 2007, 16:17 |
It's the same as with the regu
|
#2 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
It's the same as with the regular phi (see discussions elsewhere): if you multiply it with the face-normal you get your vector value.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|
June 21, 2010, 19:22 |
|
#3 | |
New Member
Xingzhi You
Join Date: May 2010
Posts: 7
Rep Power: 16 |
Quote:
solve(fvm:: ddt(rho)+ fvm :: div (rhoFlux, rho) ) I do not understand what does this do? It does not look like a continuity equation for the charge conservation. And also rhoFlux should be a surface vector field, and rho is a volume field, how could them be mixed together for calculation? |
||
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
What is the k in electrostaticFoam | waynezw0618 | OpenFOAM Running, Solving & CFD | 2 | January 18, 2019 21:44 |
Sampling rhoFlux in electrostaticFoam | sverdoold | OpenFOAM Post-Processing | 14 | November 16, 2010 17:19 |
What is the k in electrostaticFoam | waynezw0618 | OpenFOAM Running, Solving & CFD | 0 | February 1, 2009 11:21 |