Skip to content
Snippets Groups Projects
Commit 4cbd6700 authored by Ruben Heinrich's avatar Ruben Heinrich
Browse files

[example] Line breaks

parent 57f8055a
No related branches found
No related tags found
1 merge request!2Basic import and export functionality
......@@ -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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment