CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

ElectrostaticFoam problemerror

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 6, 2007, 19:09
Default Hello, I am trying to use Ope
  #1
New Member
 
Sjaak Verdoold
Join Date: Mar 2009
Posts: 7
Rep Power: 17
sverdoold is on a distinguished road
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
sverdoold is offline   Reply With Quote

Old   October 7, 2007, 16:17
Default It's the same as with the regu
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
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
gschaider is offline   Reply With Quote

Old   June 21, 2010, 19:22
Default
  #3
New Member
 
Xingzhi You
Join Date: May 2010
Posts: 7
Rep Power: 16
masspec is on a distinguished road
Quote:
Originally Posted by gschaider View Post
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.
Hi! Do you happened to know what does the following code in ElectrostaticFOAM does?

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?
masspec is offline   Reply With Quote

Reply


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
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


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