Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Chaofan Chen
ogs
Commits
151a6698
Verified
Commit
151a6698
authored
1 year ago
by
Lars Bilke
Browse files
Options
Downloads
Patches
Plain Diff
[py] ruff fixes in Tests/Data/HydroMechanics/GroundEquilibrium/pythonBCsOGS.py.
parent
dfe42781
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Tests/Data/HydroMechanics/GroundEquilibrium/pythonBCsOGS.py
+6
-8
6 additions, 8 deletions
Tests/Data/HydroMechanics/GroundEquilibrium/pythonBCsOGS.py
with
6 additions
and
8 deletions
Tests/Data/HydroMechanics/GroundEquilibrium/pythonBCsOGS.py
+
6
−
8
View file @
151a6698
...
@@ -36,7 +36,7 @@ def ExternalDisplacement(x, t):
...
@@ -36,7 +36,7 @@ def ExternalDisplacement(x, t):
# Hydraulic BCs
# Hydraulic BCs
# -------------
# -------------
class
BCH_SurfacePressure
(
OpenGeoSys
.
BoundaryCondition
):
class
BCH_SurfacePressure
(
OpenGeoSys
.
BoundaryCondition
):
def
getDirichletBCValue
(
self
,
t
,
coords
,
node_id
,
primary_vars
):
def
getDirichletBCValue
(
self
,
_
t
,
coords
,
_
node_id
,
_
primary_vars
):
x
,
y
,
z
=
coords
x
,
y
,
z
=
coords
value
=
0.0
value
=
0.0
...
@@ -45,7 +45,7 @@ class BCH_SurfacePressure(OpenGeoSys.BoundaryCondition):
...
@@ -45,7 +45,7 @@ class BCH_SurfacePressure(OpenGeoSys.BoundaryCondition):
class
BCH_VerticalPressure
(
OpenGeoSys
.
BoundaryCondition
):
class
BCH_VerticalPressure
(
OpenGeoSys
.
BoundaryCondition
):
def
getDirichletBCValue
(
self
,
t
,
coords
,
node_id
,
primary_vars
):
def
getDirichletBCValue
(
self
,
_
t
,
coords
,
_
node_id
,
_
primary_vars
):
x
,
y
,
z
=
coords
x
,
y
,
z
=
coords
value
=
-
rho_W
*
g
*
y
value
=
-
rho_W
*
g
*
y
...
@@ -57,7 +57,7 @@ class BCH_VerticalPressure(OpenGeoSys.BoundaryCondition):
...
@@ -57,7 +57,7 @@ class BCH_VerticalPressure(OpenGeoSys.BoundaryCondition):
# -------------
# -------------
class
BCM_VerticalTraction_X
(
OpenGeoSys
.
BoundaryCondition
):
class
BCM_VerticalTraction_X
(
OpenGeoSys
.
BoundaryCondition
):
def
getFlux
(
def
getFlux
(
self
,
t
,
coords
,
primary_vars
self
,
_
t
,
coords
,
_
primary_vars
):
# here Neumann BC: flux of linear momentum
):
# here Neumann BC: flux of linear momentum
x
,
y
,
z
=
coords
x
,
y
,
z
=
coords
...
@@ -72,8 +72,6 @@ class BCM_VerticalTraction_X(OpenGeoSys.BoundaryCondition):
...
@@ -72,8 +72,6 @@ class BCM_VerticalTraction_X(OpenGeoSys.BoundaryCondition):
class
BCM_MonitoringTraction
(
OpenGeoSys
.
BoundaryCondition
):
class
BCM_MonitoringTraction
(
OpenGeoSys
.
BoundaryCondition
):
def
getFlux
(
self
,
t
,
coords
,
primary_vars
):
def
getFlux
(
self
,
t
,
coords
,
primary_vars
):
x
,
y
,
z
=
coords
x
,
y
,
z
=
coords
pp_actual
=
primary_vars
[
0
]
ux_actual
=
primary_vars
[
1
]
uy_actual
=
primary_vars
[
2
]
uy_actual
=
primary_vars
[
2
]
uy_target
=
ExternalDisplacement
(
x
,
t
)
uy_target
=
ExternalDisplacement
(
x
,
t
)
...
@@ -89,7 +87,7 @@ class BCM_MonitoringTraction(OpenGeoSys.BoundaryCondition):
...
@@ -89,7 +87,7 @@ class BCM_MonitoringTraction(OpenGeoSys.BoundaryCondition):
class
BCM_SurfaceDisplacement_Y
(
OpenGeoSys
.
BoundaryCondition
):
class
BCM_SurfaceDisplacement_Y
(
OpenGeoSys
.
BoundaryCondition
):
def
getDirichletBCValue
(
self
,
t
,
coords
,
node_id
,
primary_vars
):
def
getDirichletBCValue
(
self
,
t
,
coords
,
_
node_id
,
_
primary_vars
):
x
,
y
,
z
=
coords
x
,
y
,
z
=
coords
# prescribe displacement u_y
# prescribe displacement u_y
...
@@ -99,7 +97,7 @@ class BCM_SurfaceDisplacement_Y(OpenGeoSys.BoundaryCondition):
...
@@ -99,7 +97,7 @@ class BCM_SurfaceDisplacement_Y(OpenGeoSys.BoundaryCondition):
class
BCM_BottomDisplacement_Y
(
OpenGeoSys
.
BoundaryCondition
):
class
BCM_BottomDisplacement_Y
(
OpenGeoSys
.
BoundaryCondition
):
def
getDirichletBCValue
(
self
,
t
,
coords
,
node_id
,
primary_vars
):
def
getDirichletBCValue
(
self
,
_
t
,
_
coords
,
_
node_id
,
_
primary_vars
):
# prescribe displacement u_y
# prescribe displacement u_y
value
=
0
value
=
0
...
@@ -107,7 +105,7 @@ class BCM_BottomDisplacement_Y(OpenGeoSys.BoundaryCondition):
...
@@ -107,7 +105,7 @@ class BCM_BottomDisplacement_Y(OpenGeoSys.BoundaryCondition):
class
BCM_LateralDisplacement_X
(
OpenGeoSys
.
BoundaryCondition
):
class
BCM_LateralDisplacement_X
(
OpenGeoSys
.
BoundaryCondition
):
def
getDirichletBCValue
(
self
,
t
,
coords
,
node_id
,
primary_vars
):
def
getDirichletBCValue
(
self
,
_
t
,
_
coords
,
_
node_id
,
_
primary_vars
):
# prescribe displacement u_x
# prescribe displacement u_x
value
=
0
value
=
0
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment