create_anatomy: Generate a root cross-section Functions to generate root...

View source: R/create_anatomy.R

create_anatomyR Documentation

Generate a root cross-section Functions to generate root cross section anatomy, based on global parameters, such as the mean size of cells and number of cell layers.

Description

Generate a root cross-section

Functions to generate root cross section anatomy, based on global parameters, such as the mean size of cells and number of cell layers.

Usage

create_anatomy(
  path = NULL,
  parameters = NULL,
  verbatim = F,
  maturity_x = F,
  paraview = T
)

Arguments

path

The path to the input file

parameters

the input parameter table. Can be obtain by read_param_xml()

verbatim

TRUE = Generate text to follow the simulation process/ FALSE = no text

maturity_x

TRUE = meta-xylem are labeled as stele cell /FALSE = no change in cell labeling (default)

paraview

TRUE = cell wall data is set to make 3D object/ FALSE = cell wall data is not compatible for 3D object

Examples

# Load input
params <- read_param_xml(path = system.file("extdata", "root_monocot.xml", package = "granar"))
# Generate anatomy
root = create_anatomy(parameters = params)
# Visualize the simulation output
plot_anatomy(root)
# Write the simulation output
write_anatomy_xml(sim = root, path = system.file("extdata", "current_root.xml", package = "granar"))


granar/granar documentation built on Feb. 29, 2024, 3:58 p.m.