- **OpenFOAM**
(*http://www.cfd-online.com/Forums/openfoam/*)

- - **electrostatic solver questions**
(*http://www.cfd-online.com/Forums/openfoam/69433-electrostatic-solver-questions.html*)

electrostatic solver questionsHello,
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);` 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 |

All times are GMT -4. The time now is 17:47. |