Skip to content

Commit

Permalink
FEM: solver elmer, use single quotes instead of double ones
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed Sep 5, 2019
1 parent 372f22e commit 30b536b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/Mod/Fem/femsolver/elmer/equations/electrostatic.py
Expand Up @@ -54,14 +54,14 @@ def __init__(self, obj):
obj.addProperty(
"App::PropertyBool", "CalculateSurfaceCharge",
"Electrostatic", "Select type of solver for linear system")
'''
"""
#obj.addProperty(
#"App::PropertyBool", "CalculateCapacitanceMatrix",
#"Electrostatic", "Select type of solver for linear system")
#obj.addProperty(
#"App::PropertyInteger", "CapacitanceBodies",
#"Electrostatic", "Select type of solver for linear system")
'''
"""

obj.Priority = 10

Expand Down
8 changes: 4 additions & 4 deletions src/Mod/Fem/femsolver/elmer/equations/fluxsolver.py
Expand Up @@ -48,18 +48,18 @@ def __init__(self, obj):
obj.addProperty(
"App::PropertyString", "FluxVariable",
"Fluxsolver", "Insert variable name for flux calculation")
'''
"""
#obj.addProperty(
#"App::PropertyBool", "CalculateFluxAbs",
#"Fluxsolver", "Select calculation of abs of flux")
#obj.addProperty(
#"App::PropertyBool", "CalculateFluxMagnitude",
#"Fluxsolver", "Select calculation of magnitude of flux")
'''
"""
obj.addProperty(
"App::PropertyBool", "CalculateGrad",
"Fluxsolver", "Select calculation of gradient")
'''
"""
#obj.addProperty(
#"App::PropertyBool", "CalculateGradAbs",
#"Fluxsolver", "Select calculation of abs of gradient")
Expand All @@ -69,7 +69,7 @@ def __init__(self, obj):
#obj.addProperty(
#"App::PropertyBool", "EnforcePositiveMagnitude",
#"Fluxsolver", "Select calculation of positive magnitude")
'''
"""
obj.Priority = 5


Expand Down
4 changes: 2 additions & 2 deletions src/Mod/Fem/femsolver/elmer/writer.py
Expand Up @@ -138,7 +138,7 @@ def _writeMesh(self):

def _writeStartinfo(self):
path = os.path.join(self.directory, _STARTINFO_NAME)
with open(path, 'w') as f:
with open(path, "w") as f:
f.write(_SIF_NAME)

def _exportToUnv(self, groups, mesh, meshPath):
Expand Down Expand Up @@ -741,7 +741,7 @@ def _addOutputSolver(self):

def _writeSif(self):
sifPath = os.path.join(self.directory, _SIF_NAME)
with open(sifPath, 'w') as fstream:
with open(sifPath, "w") as fstream:
sif = sifio.Sif(self._builder)
sif.write(fstream)

Expand Down

0 comments on commit 30b536b

Please sign in to comment.