model_create_component
Creates a component in a COMSOL model to contain geometry, physics, materials, and mesh. Set the space dimension and run before adding geometry or physics.
Instructions
Create a component in the model (required before adding geometry/physics).
Components are containers for geometry, physics, materials, and mesh. Must be created before adding geometry or physics.
Args: component_name: Name for the component (default: 'comp1') space_dimension: Space dimension - 0=0D, 1=1D, 2=2D, 3=3D, 20=2D axisymmetric, 30=3D axisymmetric (default: 3) model_name: Model name (default: current model)
Returns: Created component info
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model_name | No | ||
| component_name | No | comp1 | |
| space_dimension | No |