Additional fix in condition

This commit is contained in:
FilippoOlivo
2025-03-12 23:14:02 +01:00
parent 972fa2101d
commit 8a3c169ffd
5 changed files with 34 additions and 40 deletions

View File

@@ -10,15 +10,16 @@ from ..equation.equation_interface import EquationInterface
class DomainEquationCondition(ConditionInterface):
"""
Condition for domain/equation data. This condition must be used every
time a Physics Informed Loss is needed in the Solver.
Condition defined by a domain and an equation. It can be used in Physics
Informed problems. Before using this condition, make sure that input data
are correctly sampled from the domain.
"""
__slots__ = ["domain", "equation"]
def __init__(self, domain, equation):
"""
Initialize the object by storing the domain and equation.
Initialise the object by storing the domain and equation.
:param DomainInterface domain: Domain object containing the domain data.
:param EquationInterface equation: Equation object containing the