|October 22, 2009, 14:20||
electrostatic solver questions
Join Date: Oct 2009
Posts: 2Rep Power: 0
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?
rhoFlux = -k*mesh.magSf()*fvc::snGrad(phi); solve ( fvm::ddt(rho) + fvm::div(rhoFlux, rho) );
The second question is about the poisson equation
solve ( fvm::laplacian(phi) + rho/epsilon0 );
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!
|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 15: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 1, 2003 23:32|