cashocs.space_mapping.shape_optimization.FineModel#
- class cashocs.space_mapping.shape_optimization.FineModel(
- mesh: fenics.Mesh,
Bases:
ABCBase class for the fine model in space mapping shape optimization.
- Variables:
mesh – The FEM mesh for the fine model.
cost_functional_value (float) – The current cost functional value of the fine model.
- Parameters:
mesh (fenics.Mesh)
Initializes self.
- Parameters:
mesh (fenics.Mesh) – The finite element mesh of the coarse model, used for the space mapping with the fine model.
Methods Summary
simulate()Simulates the fine model.
Solves and evaluates the fine model.
Attributes Summary
Methods Documentation
- simulate() None[source]#
Simulates the fine model.
This is done in this method so it can be decorated for logging purposes.
- Return type:
None
- abstractmethod solve_and_evaluate() None[source]#
Solves and evaluates the fine model.
This needs to be overwritten with a custom implementation.
- Return type:
None
Attributes Documentation
- cost_functional_value: float#