Skip to content

Commit

Permalink
FEM: constants, fix unit of permitivity of vacuum
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed May 21, 2020
1 parent 049a340 commit 7d0277f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Mod/Fem/femsolver/elmer/writer.py
Expand Up @@ -340,7 +340,8 @@ def _getElectrostaticSolver(self, equation):
def _handleElectrostaticConstants(self):
self._constant(
"Permittivity Of Vacuum",
getConstant("PermittivityOfVacuum", "T^4*I^2/(L*M)"))
getConstant("PermittivityOfVacuum", "T^4*I^2/(L^3*M)"))
# https://forum.freecadweb.org/viewtopic.php?f=18&p=400959#p400959

def _handleElectrostaticMaterial(self, bodies):
for obj in self._getMember("App::MaterialObject"):
Expand Down
4 changes: 3 additions & 1 deletion src/Mod/Fem/femtools/constants.py
Expand Up @@ -41,7 +41,9 @@ def stefan_boltzmann():


def permittivity_of_vakuum():
return "8.8542e-12 s^4*A^2/(m*kg)"
# https://forum.freecadweb.org/viewtopic.php?f=18&p=400959#p400959
return "8.8542e-12 s^4*A^2 / (m**3 * kg)"



def boltzmann_constant():
Expand Down

0 comments on commit 7d0277f

Please sign in to comment.