Skip to content
Snippets Groups Projects
read_from_benchmark_example.R 994 B
Newer Older
  • Learn to ignore specific revisions
  • detach("package:r2ogs6", unload=TRUE)
    library(r2ogs6)
    
    
    #This is where the user defines their data.
    
    
    
    Ruben Heinrich's avatar
    Ruben Heinrich committed
    #===== SET UP SIMULATION OBJECT =====
    
    
    
    # Set this option on your system:
    
    ogs_bin_path <- paste0("D:/Programme/OpenGeoSys/",
    
    Ruben Heinrich's avatar
    Ruben Heinrich committed
                           "ogs-6.3.2-Windows-10.0.14393-x64-python-3.7.2-de-utils",
    
    
    #First, we need to create a simulation object.
    
    ogs6_obj <- OGS6$new(sim_name = "my_sim",
                         sim_id = 1,
    
                         sim_path = "D:/OGS_Sim/",
    
    Ruben Heinrich's avatar
    Ruben Heinrich committed
                         ogs_bin_path = ogs_bin_path)
    
    
    Ruben Heinrich's avatar
    Ruben Heinrich committed
    #===== READ IN .prj FILE =====
    
    
    # (system dependent)
    prj_path = paste0("D:\\Programme\\OpenGeoSys\\",
                      "ogs-master-Tests-Data\\",
                      "Tests\\Data\\HydroMechanics\\IdealGas\\",
                      "flow_no_strain\\flow_no_strain.prj")
    
    Ruben Heinrich's avatar
    Ruben Heinrich committed
    #===== Execution =====
    
    
    #Calls OGS6 validators, exports all necessary files and starts OpenGeoSys6
    
    e <- run_simulation(ogs6_obj)