cashocs.space_mapping.shape_optimization.FineModel#
- class cashocs.space_mapping.shape_optimization.FineModel(mesh: fenics.Mesh)[source]#
Bases:
ABC
Base 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
Solves and evaluates the fine model.
Attributes Summary
Methods Documentation
- 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#