Compiler#
- class reservoirflow.solutions.Compiler(model, stype: str, method: str, sparse: bool = True)#
Bases:
object
Compiler class.
This class is used to compile a model from
models
module.- Returns:
Compiler object.
- Return type:
Construct compiler object.
- Parameters:
model (Model) – a model object from
models
module.stype (str) – solution type in [‘numerical’, ‘analytical’, ‘neurical’].
method (str) –
solution method as following:
numerical methods:
['FDM', 'FVM', 'FEM']
.analytical methods:
['1D1P', '1D2P', etc.]
.neurical methods:
['PINN', 'DeepONet']
.
sparse (bool, optional, default: True) – using sparse computing for a better performance.
Methods
Comments 💬#
Feel free to make a comment, ask a question, or share your opinion about this specific content. Please keep in mind the Commenting Guidelines ⚖.