generate_model_java
Generate a standalone COMSOL Java model source file that can be prepared without COMSOL installed, then compiled and run on a COMSOL machine.
Instructions
Generate a standalone, compilable COMSOL Java model source file.
Works WITHOUT COMSOL installed. Use it on a COMSOL-less machine to prepare a
Java model, then move the file to a COMSOL machine and compile it:
comsolcompile .java
comsolbatch -java
spec may carry geometries/physics/materials/studies/save to shape the code.
The produced file still needs COMSOL to actually compile into a .mph.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | No | ||
| filepath | Yes | ||
| class_name | No | GeneratedModel | |
| model_version | No | 6.2 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |