Skip to content

Commit

Permalink
Add alfasim description coversion;
Browse files Browse the repository at this point in the history
Add formation description conversion;

PWPA-1963
  • Loading branch information
Gabriel Antão committed Jun 21, 2024
1 parent 91fb652 commit 2f44190
Show file tree
Hide file tree
Showing 7 changed files with 929 additions and 103 deletions.
1 change: 1 addition & 0 deletions src/alfasim_score/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from alfasim_score.units import ROUGHNESS_UNIT

WELLBORE_NAME = "WELLBORE"
WELLBORE_TOP_NODE = "WELBORE_TOP_NODE"
WELLBORE_BOTTOM_NODE = "WELBORE_BOTTOM_NODE"
ANNULUS_TOP_NODE_NAME = "WELLBORE_ANNULUS_TOP_NODE"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from alfasim_sdk import convert_description_to_alfacase
from pytest_regressions.file_regression import FileRegressionFixture

from alfasim_score.converter.alfacase.convert_alfacase import ScoreAlfacaseConverter
from alfasim_score.converter.alfacase.score_input_reader import ScoreInputReader


def test_create_alfacase(
file_regression: FileRegressionFixture,
score_input_example: ScoreInputReader,
) -> None:
builder = ScoreAlfacaseConverter(score_input_example)
case_description = builder.build_case_description()
file_regression.check(
convert_description_to_alfacase(case_description), encoding="utf-8", extension=".alfacase"
)
Loading

0 comments on commit 2f44190

Please sign in to comment.