|
[Sponsors] |
October 22, 2009, 15:20 |
electrostatic solver questions
|
#1 |
New Member
Join Date: Oct 2009
Posts: 2
Rep Power: 0 |
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) ); The second question is about the poisson equation Code:
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! Lars |
|
|
|
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 |