Fix Codacy Warnings (#477)

---------

Co-authored-by: Dario Coscia <dariocos99@gmail.com>
This commit is contained in:
Filippo Olivo
2025-03-10 15:38:45 +01:00
committed by Nicola Demo
parent e3790e049a
commit 4177bfbb50
157 changed files with 3473 additions and 3839 deletions

View File

@@ -1,14 +1,17 @@
"""Module"""
"""Module for defining different equations."""
from .equation import Equation
from ..operator import grad, div, laplacian
class FixedValue(Equation):
"""
Fixed Value Equation class.
"""
def __init__(self, value, components=None):
"""
Fixed Value Equation class. This class can be
This class can be
used to enforced a fixed value for a specific
condition, e.g. Dirichlet Boundary conditions.
@@ -29,11 +32,13 @@ class FixedValue(Equation):
class FixedGradient(Equation):
"""
Fixed Gradient Equation class.
"""
def __init__(self, value, components=None, d=None):
"""
Fixed Gradient Equation class. This class can be
used to enforced a fixed gradient for a specific
This class can beused to enforced a fixed gradient for a specific
condition.
:param float value: Value to be mantained fixed.
@@ -55,11 +60,13 @@ class FixedGradient(Equation):
class FixedFlux(Equation):
"""
Fixed Flux Equation class.
"""
def __init__(self, value, components=None, d=None):
"""
Fixed Flux Equation class. This class can be
used to enforced a fixed flux for a specific
This class can be used to enforced a fixed flux for a specific
condition.
:param float value: Value to be mantained fixed.
@@ -81,10 +88,13 @@ class FixedFlux(Equation):
class Laplace(Equation):
"""
Laplace Equation class.
"""
def __init__(self, components=None, d=None):
"""
Laplace Equation class. This class can be
This class can be
used to enforced a Laplace equation for a specific
condition (force term set to zero).