addComponentInput: Adds an input to a sim component.

View source: R/solution_modifications.R

addComponentInputR Documentation

Adds an input to a sim component.

Description

Notice: One can only add inputs that are defined by the sim component. If source is not given, then the parameter value is used.

Usage

addComponentInput(
  sol,
  componentid,
  id,
  source = NULL,
  value = NULL,
  datatype = NULL,
  unit = NULL,
  description = NULL
)

Arguments

sol

solution object

componentid

id of sim component

id

id of variable

source

source of variable

value

value of variable (is used only if source is not given or NULL)

datatype

datatype (optional)

unit

unit (optional)

description

short description (optional)

Value

modified solution object


simplaceUtil documentation built on Aug. 6, 2024, 3:01 p.m.