Introduction > Getting Started > The Model Object

The Model Object
In the COMSOL API you access models through the model object, which contains all algorithms and data structures for a COMSOL model. The COMSOL Desktop also uses the model object to represent your model. This means that the model object and the COMSOL Desktop behavior are virtually identical.
You use methods to create, modify, and access your model. The model object provides a large number of methods, including methods for setting up and running sequences of operations to create geometry, meshes, and for solving your model. The methods are structured in a tree-like way, much similar to the nodes in the model tree in the Model Builder window on the COMSOL Desktop. The top-level methods just return references that support further methods. At a certain level the methods perform actions, such as adding data to the model object, performing computations, or returning data.
You must have a basic understanding of the Java® programming language in order to fully appreciate how to work with the model object. However, the Application Builder includes tools like code recording, auto-completion, and predefined code templates that make it easier to create methods.