BaseVisitor#
- class ansys.materials.manager.parsers.base_visitor.BaseVisitor(materials: list[ansys.materials.manager._models.material.Material])#
Base visitor. All visitors should inherit from this class.
Overview#
Abstract implementation of the visit material model. |
Get the material id given the material name. |
|
Check if the material model is supported. |
|
Visit materials. |
Import detail#
from ansys.materials.manager.parsers.base_visitor import BaseVisitor
Method detail#
- BaseVisitor.is_supported(material_model: ansys.materials.manager._models._common.material_model.MaterialModel) bool#
Check if the material model is supported.
- Parameters:
- material_model
MaterialModel Material model to check.
- material_model
- Returns:
- bool
True if the material model is supported, False otherwise.
- abstractmethod BaseVisitor.visit_material_model(material_name: str, material_model: ansys.materials.manager._models._common.material_model.MaterialModel)#
Abstract implementation of the visit material model.
- BaseVisitor.visit_materials()#
Visit materials.