create_coordinate_system
Define and generate a 3D coordinate system for vector calculus operations, allowing custom coordinate names or default labels for x, y, z axes.
Instructions
Creates a 3D coordinate system for vector calculus operations.
Args:
name: The name for the coordinate system.
coord_names: Optional list of coordinate names (3 names for x, y, z).
If not provided, defaults to [name+'_x', name+'_y', name+'_z'].
Example:
# Create a coordinate system
coord_sys = create_coordinate_system("R")
# Creates a coordinate system R with coordinates R_x, R_y, R_z
# Create a coordinate system with custom coordinate names
coord_sys = create_coordinate_system("C", ["rho", "phi", "z"])
Returns:
The name of the created coordinate system.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
coord_names | No | ||
name | Yes |
Input Schema (JSON Schema)
{
"properties": {
"coord_names": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Coord Names"
},
"name": {
"title": "Name",
"type": "string"
}
},
"required": [
"name"
],
"title": "create_coordinate_systemArguments",
"type": "object"
}