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

[docs] Added documentation for new functions

parent 5325ea64
No related branches found
No related tags found
4 merge requests!57 vtkdiff,!47 parameter,!37 process borehole heat exchanger,!2Basic import and export functionality
...@@ -23,6 +23,7 @@ Constructor for the OGS6 base class ...@@ -23,6 +23,7 @@ Constructor for the OGS6 base class
\item \href{#method-add_linear_solver}{\code{OGS6$add_linear_solver()}} \item \href{#method-add_linear_solver}{\code{OGS6$add_linear_solver()}}
\item \href{#method-add_vtkdiff}{\code{OGS6$add_vtkdiff()}} \item \href{#method-add_vtkdiff}{\code{OGS6$add_vtkdiff()}}
\item \href{#method-get_status}{\code{OGS6$get_status()}} \item \href{#method-get_status}{\code{OGS6$get_status()}}
\item \href{#method-clear}{\code{OGS6$clear()}}
\item \href{#method-clone}{\code{OGS6$clone()}} \item \href{#method-clone}{\code{OGS6$clone()}}
} }
} }
...@@ -31,7 +32,7 @@ Constructor for the OGS6 base class ...@@ -31,7 +32,7 @@ Constructor for the OGS6 base class
\if{latex}{\out{\hypertarget{method-new}{}}} \if{latex}{\out{\hypertarget{method-new}{}}}
\subsection{Method \code{new()}}{ \subsection{Method \code{new()}}{
\subsection{Usage}{ \subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{OGS6$new(sim_name, sim_id, sim_path, ogs_bin_path)}\if{html}{\out{</div>}} \if{html}{\out{<div class="r">}}\preformatted{OGS6$new(sim_name, sim_id, sim_path, ogs_bin_path, test_mode = FALSE)}\if{html}{\out{</div>}}
} }
\subsection{Arguments}{ \subsection{Arguments}{
...@@ -44,6 +45,9 @@ Constructor for the OGS6 base class ...@@ -44,6 +45,9 @@ Constructor for the OGS6 base class
\item{\code{sim_path}}{The path where all relevant files for the simulation will be saved} \item{\code{sim_path}}{The path where all relevant files for the simulation will be saved}
\item{\code{ogs_bin_path}}{Path to OpenGeoSys6 /bin directory} \item{\code{ogs_bin_path}}{Path to OpenGeoSys6 /bin directory}
\item{\code{test_mode}}{In test mode, sim_path and ogs_bin_path will not be validated. If you're not
a developer, please leave this variable as it is :)}
} }
\if{html}{\out{</div>}} \if{html}{\out{</div>}}
} }
...@@ -164,6 +168,19 @@ Constructor for the OGS6 base class ...@@ -164,6 +168,19 @@ Constructor for the OGS6 base class
\if{html}{\out{<div class="r">}}\preformatted{OGS6$get_status()}\if{html}{\out{</div>}} \if{html}{\out{<div class="r">}}\preformatted{OGS6$get_status()}\if{html}{\out{</div>}}
} }
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-clear"></a>}}
\if{latex}{\out{\hypertarget{method-clear}{}}}
\subsection{Method \code{clear()}}{
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{OGS6$clear(
which = c("meshes", "geometry", "processes", "time_loop", "media", "parameters",
"curves", "process_variables", "nonlinear_solvers", "linear_solvers",
"test_definition")
)}\if{html}{\out{</div>}}
}
} }
\if{html}{\out{<hr>}} \if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-clone"></a>}} \if{html}{\out{<a id="method-clone"></a>}}
......
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_in_utils.R
\name{find_read_in_func_call}
\alias{find_read_in_func_call}
\title{find_read_in_func_call}
\usage{
find_read_in_func_call(node_name)
}
\arguments{
\item{node_name}{The name of an XML node}
}
\value{
A ready-to-call string if a corresponding function was found, an empty string otherwise
}
\description{
Checks if a custom read_in function was defined for nodes with the given name
}
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_in_utils.R
\name{get_grandchild_length_vector}
\alias{get_grandchild_length_vector}
\title{get_grandchild_length_vector}
\usage{
get_grandchild_length_vector(xml_node)
}
\arguments{
\item{xml_node}{An XML node}
}
\value{
A numeric vector containing the number of children of each child of xml_node
}
\description{
Helper function to check the number of children of children of an XML node
(i.e. grandchildren)
}
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
\alias{guess_structure} \alias{guess_structure}
\title{guess_structure} \title{guess_structure}
\usage{ \usage{
guess_structure(xml_node, subclasses_names = NULL) guess_structure(xml_node, subclasses_names = character())
} }
\arguments{ \arguments{
\item{xml_node}{An XML node (of class xml2::xml_node)} \item{xml_node}{An XML node (of class xml2::xml_node)}
......
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_in_utils.R
\name{is_het_wrapper}
\alias{is_het_wrapper}
\title{is_het_wrapper}
\usage{
is_het_wrapper(xml_node, subclasses_names = character())
}
\arguments{
\item{xml_node}{An XML node (of class xml2::xml_node)}
\item{subclasses_names}{Optional: A character vector containing the names of r2ogs6_*
subclasses (r2ogs6_* classes without a method for input_add)}
}
\description{
Tests if a node is a heterogenous wrapper
}
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_in_utils.R
\name{list_from_nodeset}
\alias{list_from_nodeset}
\title{list_from_nodeset}
\usage{
list_from_nodeset(xml_nodeset)
}
\arguments{
\item{xml_nodeset}{An XML nodeset (of class xml2::xml_nodeset)}
}
\description{
Creates a named vector from a nodeset
}
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_in_utils.R
\name{make_call_from_parameters}
\alias{make_call_from_parameters}
\title{make_call_from_parameters}
\usage{
make_call_from_parameters(class_name, parameters)
}
\arguments{
\item{class_name}{Which class constructor should be called?}
\item{parameters}{A named list of parameters}
}
\description{
Helper function to construct a call from a class name and a
list of class parameters
}
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
\alias{node_to_r2ogs6_obj} \alias{node_to_r2ogs6_obj}
\title{node_to_r2ogs6_obj} \title{node_to_r2ogs6_obj}
\usage{ \usage{
node_to_r2ogs6_obj(xml_node, subclasses_names = NULL) node_to_r2ogs6_obj(xml_node, subclasses_names = character())
} }
\arguments{ \arguments{
\item{xml_node}{An XML node (of class xml2::xml_node)} \item{xml_node}{An XML node (of class xml2::xml_node)}
......
...@@ -4,14 +4,16 @@ ...@@ -4,14 +4,16 @@
\alias{r2ogs6_parameter} \alias{r2ogs6_parameter}
\title{r2ogs6_parameter} \title{r2ogs6_parameter}
\usage{ \usage{
r2ogs6_parameter(name, type, values) r2ogs6_parameter(name, type, values = NULL, value = NULL)
} }
\arguments{ \arguments{
\item{name}{The parameter name} \item{name}{The parameter name}
\item{type}{The parameter type} \item{type}{The parameter type}
\item{values}{The parameter values} \item{values}{Optional: The parameter values}
\item{value}{Optional: The parameter value}
} }
\description{ \description{
S3 class describing a .prj parameter S3 class describing a .prj parameter
......
...@@ -10,7 +10,7 @@ read_in( ...@@ -10,7 +10,7 @@ read_in(
element_name, element_name,
child_name, child_name,
selection_vector = NULL, selection_vector = NULL,
subclasses_names = NULL subclasses_names = character()
) )
} }
\arguments{ \arguments{
......
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_in_prj.R
\name{read_in_timesteps_node}
\alias{read_in_timesteps_node}
\title{read_in_timesteps_node}
\usage{
read_in_timesteps_node(timesteps_node)
}
\arguments{
\item{timesteps_node}{The timesteps node}
}
\description{
Reads in a timesteps node
}
...@@ -4,12 +4,14 @@ ...@@ -4,12 +4,14 @@
\alias{run_simulation} \alias{run_simulation}
\title{run_simulation} \title{run_simulation}
\usage{ \usage{
run_simulation(ogs6_obj, iter_n = 1) run_simulation(ogs6_obj, iter_n = 1, output_to_log_file = TRUE)
} }
\arguments{ \arguments{
\item{ogs6_obj}{A OGS6 class object} \item{ogs6_obj}{A OGS6 class object}
\item{iter_n}{The number of iterations (for simulation chains)} \item{iter_n}{The number of iterations (for simulation chains)}
\item{output_to_log_file}{Should the output be written to a log file?}
} }
\description{ \description{
Calls OGS6 object validator functions, exports all necessary files and starts OpenGeoSys6 Calls OGS6 object validator functions, exports all necessary files and starts OpenGeoSys6
......
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