Skip to content

Commit

Permalink
Configure the three phase physics option;
Browse files Browse the repository at this point in the history
PWPA-1971
  • Loading branch information
Gabriel Antão committed Jul 5, 2024
1 parent dfcabd3 commit 8649e5b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Teste Térmico
physics:
hydrodynamic_model: hydrodynamic_model_4_fields
hydrodynamic_model: hydrodynamic_model_3_layers_gas_oil_water
simulation_regime: simulation_regime_transient
energy_model: no_model
solids_model: no_model
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Teste Térmico
physics:
hydrodynamic_model: hydrodynamic_model_4_fields
hydrodynamic_model: hydrodynamic_model_3_layers_gas_oil_water
simulation_regime: simulation_regime_transient
energy_model: no_model
solids_model: no_model
Expand Down
7 changes: 7 additions & 0 deletions src/alfasim_score/converter/alfacase/convert_alfacase.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from alfasim_sdk import EnvironmentPropertyDescription
from alfasim_sdk import FormationDescription
from alfasim_sdk import FormationLayerDescription
from alfasim_sdk import HydrodynamicModelType
from alfasim_sdk import MassInflowSplitType
from alfasim_sdk import MassSourceNodePropertiesDescription
from alfasim_sdk import MassSourceType
Expand All @@ -18,6 +19,7 @@
from alfasim_sdk import NodeDescription
from alfasim_sdk import OpenHoleDescription
from alfasim_sdk import PackerDescription
from alfasim_sdk import PhysicsDescription
from alfasim_sdk import PipeEnvironmentHeatTransferCoefficientModelType
from alfasim_sdk import PipeThermalModelType
from alfasim_sdk import PipeThermalPositionInput
Expand Down Expand Up @@ -250,6 +252,10 @@ def _convert_casings(self) -> CasingDescription:
open_holes=self._convert_open_hole_list(),
)

def build_physics(self) -> PhysicsDescription:
"""Create the description for the physics data."""
return PhysicsDescription(hydrodynamic_model=HydrodynamicModelType.ThreeLayersGasOilWater)

def build_nodes(self) -> List[NodeDescription]:
"""Create the description for the node list."""
nodes = [
Expand Down Expand Up @@ -315,6 +321,7 @@ def build_case_description(self) -> CaseDescription:
""" "Create the description for the alfacase."""
return CaseDescription(
name=self.general_data["case_name"],
physics=self.build_physics(),
nodes=self.build_nodes(),
wells=[self.build_well()],
materials=self._convert_materials(),
Expand Down

0 comments on commit 8649e5b

Please sign in to comment.