General tree structure
The following tree structure provides the minimum APSIM Next Generation and CLEM model components required to set up a CLEM simulation. This file is available in the CLEM examples folder (CLEMDefault.APSIMX).
APSIM next generation requirements

The top level component of any APSIM Next Generation file is a Simulations component. This holds any number of individual Simulation components that can be run together or individually.

The DataStore component is responsible for managing all data (results) generated by all the individual Simulation components as well as messages and simulation summaries.

The Simulation component defines an individual simulation.

The Clock component is used to set the start and end date of the simulation and is required in each Simulation component.

The Summaryfile component is used by all models to report messages and errors for display to the user.
CLEM requirements

The top level CLEM component is added under a Simulation component. This component manages the CLEM model.

A CLEM Events component is required as a child of the APSIM Clock.

A Resources holder is a CLEM component able to hold and manage all resources needed for the simulation.

An Activities holder is a CLEM component able to hold and manage all activities needed for the simulation.

Any number of additional CLEM folder components can be added to store report and graph components for the simulation.
See next section - Managing model components