Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support I,J,K-based definition of fault segment orientation #426

Open
olwijn opened this issue Aug 5, 2021 · 0 comments
Open

Support I,J,K-based definition of fault segment orientation #426

olwijn opened this issue Aug 5, 2021 · 0 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@olwijn
Copy link
Collaborator

olwijn commented Aug 5, 2021

Item 8 of each record under the Eclipse keyword FAULTS indicates the orientation of the face of a fault segment. This should be one of X, Y, Z or I, J, K. FlowNet currently only supports X, Y, Z. The I, J, K orientation is used in the current field case. The script _from_flow.py should be modifed as follows:

if row["FACE"] == "X" or row["FACE"] == "X+" or row["FACE"] == "I" or row["FACE"] == "I+":
points.append((row["NAME"], i + 1, j, k))
elif row["FACE"] == "Y" or row["FACE"] == "Y+" or row["FACE"] == "J" or row["FACE"] == "J+":
points.append((row["NAME"], i, j + 1, k))
elif row["FACE"] == "Z" or row["FACE"] == "Z+" or row["FACE"] == "K" or row["FACE"] == "K+":
points.append((row["NAME"], i, j, k + 1))
elif row["FACE"] == "X-" or row["FACE"] == "I-":
points.append((row["NAME"], i - 1, j, k))
elif row["FACE"] == "Y-" or row["FACE"] == "J-":
points.append((row["NAME"], i, j - 1, k))
elif row["FACE"] == "Z-" or row["FACE"] == "K-":
points.append((row["NAME"], i, j, k - 1))
else:
raise ValueError(
f"Could not interpret '{row['FACE']}' while reading the FAULTS keyword."
)

@olwijn olwijn added bug Something isn't working enhancement New feature or request labels Aug 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant