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

electrostatic solver questions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 22, 2009, 15:20
Question electrostatic solver questions
  #1
New Member
 
Join Date: Oct 2009
Posts: 2
Rep Power: 0
larss is on a distinguished road
Hello,

I recently started working with OpenFOAM and as I plan to do some electrostatic simulations. However I'm having some trouble with the electrostatic solver. The first question regards the code of the solver:

what do these two calculations do?

Code:
rhoFlux = -k*mesh.magSf()*fvc::snGrad(phi);

solve
(
    fvm::ddt(rho) + fvm::div(rhoFlux, rho)
);
What exactly is rhoFlux? I have no idea what it could be, especially as it has the strange unit [m^2/s]. k also is a mystery, as it has the unit [1/Tesla].


The second question is about the poisson equation

Code:
solve (    fvm::laplacian(phi) + rho/epsilon0    );
the charge density rho causes an electric potential phi, respectively the electric potential is caused by the charge.
I'm using the charged_wire tutorial and from a technican's view I only know the voltage (=potential) of the wire, but not its charge. However when I set the boundary conditions to "calculated" or to "zeroGradient" I either get an error from the solver or the charge is zero. How can I solve this problem without knowing or calculating the charge in advance?

Thanks for your help!
Lars
larss 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
Working directory via command line Luiz CFX 4 March 6, 2011 21:02
Questions to Dynamic Mesh solver and diffusivity florian_krause OpenFOAM Running, Solving & CFD 12 January 11, 2008 22:33
questions concerning solver and multigrid methodes youradvice Main CFD Forum 1 August 6, 2007 16:27
Some questions about implementing a new solver eric OpenFOAM Running, Solving & CFD 4 November 27, 2006 11:04
compressible two phase flow in CFX4.4 youngan CFX 0 July 2, 2003 00:32


All times are GMT -4. The time now is 22:46.