Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LDD-for-two-phase-flow-systems
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
David Seus
LDD-for-two-phase-flow-systems
Commits
c94f31a4
Commit
c94f31a4
authored
6 years ago
by
David Seus
Browse files
Options
Downloads
Patches
Plain Diff
debug calc_gli_term
parent
2dc9b5a4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
LDDsimulation/domainPatch.py
+2
-2
2 additions, 2 deletions
LDDsimulation/domainPatch.py
RR-2-patch-test-case/RR-2-patch-test.py
+4
-4
4 additions, 4 deletions
RR-2-patch-test-case/RR-2-patch-test.py
with
6 additions
and
6 deletions
LDDsimulation/domainPatch.py
+
2
−
2
View file @
c94f31a4
[
interf_ind
]
"""
Class definitions for subdomains representing soil patches for LDD-TPR simulation
"""
Class definitions for subdomains representing soil patches for LDD-TPR simulation
This file contains class definitions for the class DomainPatch which defines the
This file contains class definitions for the class DomainPatch which defines the
subdomains used for the LDD simulation. Each subdomain of this class holds
subdomains used for the LDD simulation. Each subdomain of this class holds
...
@@ -581,7 +581,7 @@ class DomainPatch(df.SubDomain):
...
@@ -581,7 +581,7 @@ class DomainPatch(df.SubDomain):
phi_a
=
self
.
testfunction
[
phase
]
phi_a
=
self
.
testfunction
[
phase
]
gli_pressure_part
=
df
.
assemble
(
-
2
*
dt
*
Lambda
[
phase
]
*
pa_prev
*
phi_a
*
ds
)
gli_pressure_part
=
df
.
assemble
(
-
2
*
dt
*
Lambda
[
phase
]
*
pa_prev
*
phi_a
*
ds
)
gli_p_prev_part
=
gli_pressure_part
.
get_local
()
gli_p_prev_part
=
gli_pressure_part
.
get_local
()
gli
=
gli_p_prev_part
-
gli_prev_neighbour
gli
=
gli_p_prev_part
-
gli_prev_
of_
neighbour
# check if there are shared dofs with another interface.
# check if there are shared dofs with another interface.
if
dofs_in_common_with_other_interfaces
[
phase
].
size
!=
0
:
if
dofs_in_common_with_other_interfaces
[
phase
].
size
!=
0
:
for
common_dof
in
dofs_in_common_with_other_interfaces
[
phase
]:
for
common_dof
in
dofs_in_common_with_other_interfaces
[
phase
]:
...
...
This diff is collapsed.
Click to expand it.
RR-2-patch-test-case/RR-2-patch-test.py
+
4
−
4
View file @
c94f31a4
...
@@ -85,10 +85,10 @@ isRichards = {
...
@@ -85,10 +85,10 @@ isRichards = {
}
}
##################### MESH #####################################################
##################### MESH #####################################################
mesh_resolution
=
40
mesh_resolution
=
6
##################### TIME #####################################################
##################### TIME #####################################################
timestep_size
=
4
*
0.0001
timestep_size
=
4
*
0.0001
number_of_timesteps
=
50
00
number_of_timesteps
=
2
00
# decide how many timesteps you want analysed. Analysed means, that we write out
# decide how many timesteps you want analysed. Analysed means, that we write out
# subsequent errors of the L-iteration within the timestep.
# subsequent errors of the L-iteration within the timestep.
number_of_timesteps_to_analyse
=
11
number_of_timesteps_to_analyse
=
11
...
@@ -115,8 +115,8 @@ L = {#
...
@@ -115,8 +115,8 @@ L = {#
lambda_param
=
{
#
lambda_param
=
{
#
# subdom_num : lambda parameter for the L-scheme
# subdom_num : lambda parameter for the L-scheme
1
:
{
'
wetting
'
:
100
},
#
1
:
{
'
wetting
'
:
4
},
#
2
:
{
'
wetting
'
:
100
}
2
:
{
'
wetting
'
:
4
}
}
}
## relative permeabilty functions on subdomain 1
## relative permeabilty functions on subdomain 1
...
...
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