FEM: code formatting, pep8, 261

This commit is contained in:
Bernd Hahnebach
2023-04-03 18:15:20 +02:00
committed by wwmayer
parent 5a379ae716
commit d086faaaf6
4 changed files with 4 additions and 4 deletions

View File

@@ -39,7 +39,7 @@ def get_information():
"constraints": [],
"solvers": ["calculix", "ccxtools", "elmer"],
"material": "solid",
"equations": ["elasticity"] # "frequency", but list not allowed here
"equations": ["elasticity"] # "frequency", but list not allowed here
}

View File

@@ -108,7 +108,7 @@ class ESwriter:
self.write.constsdef["PermittivityOfVacuum"],
"T^4*I^2/(L^3*M)"
)
permittivity = round(permittivity, 20) # to get rid of numerical artifacts
permittivity = round(permittivity, 20) # to get rid of numerical artifacts
self.write.constant("Permittivity Of Vacuum", permittivity)
def handleElectrostaticMaterial(self, bodies):

View File

@@ -130,7 +130,7 @@ class MgDyn2Dwriter:
)
self.write.material(name, "Name", m["Name"])
conductivity = self.write.convert(m["ElectricalConductivity"], "T^3*I^2/(L^3*M)")
conductivity = round(conductivity, 10) # to get rid of numerical artifacts
conductivity = round(conductivity, 10) # to get rid of numerical artifacts
self.write.material(name, "Electric Conductivity", conductivity)
self.write.material(
name, "Relative Permeability",

View File

@@ -155,7 +155,7 @@ class MgDynwriter:
)
self.write.material(name, "Name", m["Name"])
conductivity = self.write.convert(m["ElectricalConductivity"], "T^3*I^2/(L^3*M)")
conductivity = round(conductivity, 10) # to get rid of numerical artifacts
conductivity = round(conductivity, 10) # to get rid of numerical artifacts
self.write.material(name, "Electric Conductivity", conductivity)
self.write.material(
name, "Relative Permeability",