Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
r2ogs6
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
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
ogs
OpenGeoSys Tools
r2ogs6
Commits
4cbd6700
Commit
4cbd6700
authored
4 years ago
by
Ruben Heinrich
Browse files
Options
Downloads
Patches
Plain Diff
[example] Line breaks
parent
57f8055a
No related branches found
No related tags found
1 merge request
!2
Basic import and export functionality
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
inst/examples/read_from_benchmark_example.R
+23
-9
23 additions, 9 deletions
inst/examples/read_from_benchmark_example.R
with
23 additions
and
9 deletions
inst/examples/read_from_benchmark_example.R
+
23
−
9
View file @
4cbd6700
...
...
@@ -4,29 +4,43 @@ library(r2ogs6)
#This is where the user defines their data.
#============================== SET UP SIMULATION OBJECT ================================
#If you want to test this, don't forget to alter the ogs_bin_path to fit your installation location!
#===== SET UP SIMULATION OBJECT =====
# If you run this, alter ogs_bin_path below to fit your installation location!
ogs_bin_path
<-
paste0
(
"D:\\Programme\\OpenGeoSys\\"
,
"ogs-6.3.2-Windows-10.0.14393-x64-python-3.7.2-de-utils"
,
"\\bin\\"
)
#First, we need to create a simulation object.
ogs6_obj
<-
OGS6
$
new
(
sim_name
=
"my_sim"
,
sim_id
=
1
,
sim_path
=
"D:\\OGS_Sim\\"
,
ogs_bin_path
=
"D:\\Programme\\OpenGeoSys\\ogs-6.3.2-Windows-10.0.14393-x64-python-3.7.2-de-utils\\bin\\"
)
ogs_bin_path
=
ogs_bin_path
)
#============================== READ IN .prj FILE ================================
#===== READ IN .prj FILE =====
# This will only work if the working directory is r2ogs6!
#This will only work if the working directory is r2ogs6, but is fine for testing purposes.
prj_path
<-
paste0
(
"inst/extdata/flow_free_expansion/flow_free_expansion.prj"
)
#prj_path = paste0("D:\\Programme\\OpenGeoSys\\ogs-master-Tests-Data-HydroMechanics\\",
# "Tests\\Data\\HydroMechanics\\IdealGas\\flow_no_strain\\flow_no_strain.prj")
# Alternative path (also system dependent)
alt_path
=
paste0
(
"D:\\Programme\\OpenGeoSys\\"
,
"ogs-master-Tests-Data-HydroMechanics\\"
,
"Tests\\Data\\HydroMechanics\\IdealGas\\"
,
"flow_no_strain\\flow_no_strain.prj"
)
read_in_prj
(
ogs6_obj
,
prj_path
)
#============================== Execution ================================
#Calls ogs6 object validator functions, exports all necessary files and starts OpenGeoSys6
#===== Execution =====
#Calls OGS6 validators, exports all necessary files and starts OpenGeoSys6
run_simulation
(
ogs6_obj
)
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