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
Özgür Ozan Sen
ogs
Commits
1c9a47d4
Commit
1c9a47d4
authored
2 years ago
by
Christoph Lehmann
Browse files
Options
Downloads
Patches
Plain Diff
[T] Use function mimicking MaterialIDs to test computed coordinates
parent
18ab8f83
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ProcessLib/ThermoHydroMechanics/Tests.cmake
+18
-0
18 additions, 0 deletions
ProcessLib/ThermoHydroMechanics/Tests.cmake
Tests/Data/ThermoHydroMechanics/Linear/Beam_sealed_bimaterial/square_1e2_function.xml
+12
-0
12 additions, 0 deletions
...ics/Linear/Beam_sealed_bimaterial/square_1e2_function.xml
with
30 additions
and
0 deletions
ProcessLib/ThermoHydroMechanics/Tests.cmake
+
18
−
0
View file @
1c9a47d4
...
@@ -39,6 +39,24 @@ AddTest(
...
@@ -39,6 +39,24 @@ AddTest(
expected_square_1e2_ts_10_t_100.000000.vtu square_1e2_ts_10_t_100.000000.vtu sigma sigma 1e-8 1e-8
expected_square_1e2_ts_10_t_100.000000.vtu square_1e2_ts_10_t_100.000000.vtu sigma sigma 1e-8 1e-8
)
)
# Same as above, but with function instead of group based parameter for Young's modulus
AddTest
(
NAME ThermoHydroMechanics_square_1e2_sealed_bimaterial_function
PATH ThermoHydroMechanics/Linear/Beam_sealed_bimaterial
RUNTIME 5
EXECUTABLE ogs
EXECUTABLE_ARGS square_1e2_function.xml
WRAPPER time
TESTER vtkdiff
REQUIREMENTS NOT OGS_USE_MPI
DIFF_DATA
expected_square_1e2_ts_10_t_100.000000.vtu square_1e2_function_ts_10_t_100.000000.vtu displacement displacement 1e-8 1e-8
expected_square_1e2_ts_10_t_100.000000.vtu square_1e2_function_ts_10_t_100.000000.vtu pressure pressure 1e-8 1e-8
expected_square_1e2_ts_10_t_100.000000.vtu square_1e2_function_ts_10_t_100.000000.vtu temperature temperature 1e-8 1e-8
expected_square_1e2_ts_10_t_100.000000.vtu square_1e2_function_ts_10_t_100.000000.vtu epsilon epsilon 1e-8 1e-8
expected_square_1e2_ts_10_t_100.000000.vtu square_1e2_function_ts_10_t_100.000000.vtu sigma sigma 1e-8 1e-8
)
# ThermoHydroMechanics; Small deformation, linear poroelastic, unsealed, bimaterial
# ThermoHydroMechanics; Small deformation, linear poroelastic, unsealed, bimaterial
AddTest
(
AddTest
(
NAME ThermoHydroMechanics_square_1e2_unsealed_bimaterial
NAME ThermoHydroMechanics_square_1e2_unsealed_bimaterial
...
...
This diff is collapsed.
Click to expand it.
Tests/Data/ThermoHydroMechanics/Linear/Beam_sealed_bimaterial/square_1e2_function.xml
0 → 100644
+
12
−
0
View file @
1c9a47d4
<?xml version='1.0' encoding='ISO-8859-1'?>
<OpenGeoSysProjectDiff
base_file=
"square_1e2.prj"
>
<remove
sel=
"/*/parameters/parameter/name[text()="E"]/.."
/>
<add
sel=
"/*/parameters"
>
<parameter>
<name>
E
</name>
<type>
Function
</type>
<expression>
if (x
<
2) 19; else if (x
<
2.1) 0.95; else 9.5;
</expression>
</parameter>
</add>
<replace
sel=
"/*/time_loop/output/prefix/text()"
>
square_1e2_function
</replace>
</OpenGeoSysProjectDiff>
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