physics_add
Add a physics interface to a COMSOL model by specifying physics type such as Electrostatics, SolidMechanics, or HeatTransfer.
Instructions
Add a physics interface to the model.
Common physics types:
"Electrostatics" or "es": Electrostatic field analysis
"ElectricCurrents" or "ec": Electric current conduction
"SolidMechanics" or "solid": Structural stress analysis
"HeatTransfer" or "ht": Heat transfer in solids
"LaminarFlow" or "spf": Fluid dynamics
Args: physics_type: Type identifier (e.g., "Electrostatics", "es") component_name: Component to add physics to (default: first component) model_name: Model name (default: current model)
Returns: Created physics interface info
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"physics_type": "<physics_type>"
},
"name": "physics_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| physics_type | Yes | ||
| component_name | No | ||
| model_name | No |