How plant-root-soil-interactions-modelling/cplantbox works
CPlantBox is a functional-structural plant-modeling toolkit: users define plant structure and parameters, simulate plant development and functions such as water and carbon dynamics, then analyze or visualize the resulting geometry and properties. The central runtime combines a Python binding with structural plant models and functional models; separate applications support plant simulation, RSML inspection, and parameter estimation. The README documents these capabilities, while source-index references and excerpts support only selected internal links; unsampled implementation relationships are not inferred.
Main entry points: Plant.h Plant growth · cplantbox/main.py Plant web app · SegmentAnalyser.cpp Segment analysis · rsml_viewer/main.py RSML web viewer
Components 21
Plant structure
- Python bindings
src/PyPlantBox.cpp - Plant organs
src/structural/Organ.h - Plant growth
src/structural/Plant.h - Mapped plant
src/structural/MappedOrganism.h
Plant function
- Hydraulic parameters
src/functional/PlantHydraulicParameters.h - Water flow
src/functional/PlantHydraulicModel.h - Photosynthesis
src/functional/Photosynthesis.h - Carbon flow
src/functional/phloem_flux.py - Root exudation
src/functional/ExudationModel.h
Analysis and exchange
- Segment analysis
src/structural/SegmentAnalyser.cpp - RSML exchange
src/rsml/rsml_writer.py - Parameter tools
src/tools/parameters.py
User applications
- Plant web app
gui/cplantbox/main.py - Plant conversions
gui/cplantbox/conversions.py - VTK conversions
gui/cplantbox/vtk_conversions.py - VTK visualization
src/visualisation/vtk_plot.py - RSML web viewer
gui/rsml_viewer/main.py - Viewer data model
gui/viewer/viewer_data.py - Estimation data
gui/estimate/estimate_data.py - Parameter estimation
gui/estimate/estimate_params.py
Other components
- Plant modeler
Connections 20
- Plant modeler → Plant web app: configures simulation
README.md - Plant modeler → RSML web viewer: inspects RSML
README.md - Python bindings → Plant organs: binds API
src/PyPlantBox.cpp - Mapped plant → Plant growth: extends plant
src/structural/MappedOrganism.h - Mapped plant → Hydraulic parameters: maps parameters
src/functional/PlantHydraulicParameters.h - Segment analysis → Water flow: uses model
src/structural/SegmentAnalyser.cpp - Segment analysis → Hydraulic parameters: uses parameters
src/structural/SegmentAnalyser.cpp - Plant web app → Plant conversions: imports
gui/cplantbox/main.py - Plant web app → VTK conversions: imports
gui/cplantbox/main.py - Plant web app → VTK visualization: renders results
- Plant conversions → VTK conversions: uses
gui/cplantbox/conversions.py - RSML web viewer → Viewer data model: loads data
gui/rsml_viewer/main.py - RSML web viewer → VTK conversions: uses conversion
gui/rsml_viewer/main.py - Estimation data → Parameter estimation: imports
gui/estimate/estimate_data.py - Plant growth → Water flow: supports water dynamics
- Plant growth → Photosynthesis: supports carbon dynamics
- Plant growth → Carbon flow: supports carbon flow
- Plant growth → Root exudation: supports soil interaction
- Plant growth → RSML exchange: exports plant data
- Segment analysis → VTK visualization: visualizes segments