Skip to content

Commit

Permalink
Merge pull request #148 from BAMresearch:143-fenics-version-0.7.0-dan…
Browse files Browse the repository at this point in the history
…ielandresarcones

Minor fixes to LinearElasticity
  • Loading branch information
danielandresarcones authored Oct 23, 2023
2 parents 173b134 + aa8ac35 commit 5ab6fae
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from fenicsxconcrete.experimental_setup import CantileverBeam, Experiment
from fenicsxconcrete.finite_element_problem.base_material import MaterialProblem, QuadratureFields, SolutionFields
from fenicsxconcrete.util import Parameters, ureg
from fenicsxconcrete.util import ureg


class LinearElasticity(MaterialProblem):
Expand Down Expand Up @@ -100,7 +100,6 @@ def parameter_description() -> dict[str, str]:
"nu": "Poissons Ratio",
"stress_state": "for 2D plain stress or plane strain",
"degree": "Polynomial degree for the FEM model",
"dt": "time step",
}

return description
Expand Down Expand Up @@ -134,7 +133,7 @@ def sigma(self, u: ufl.argument.Argument) -> ufl.core.expr.Expr:

def solve(self) -> None:
self.update_time()
self.logger.info(f"solving t={self.time}")
self.logger.info("solving t=%s", self.time)
self.weak_form_problem.solve()

# TODO Defined as abstractmethod. Should it depend on sensor instead of material?
Expand Down

0 comments on commit 5ab6fae

Please sign in to comment.