Use Batch Mode

Learn more about using batch mode.

Note: While using hooks during prediction from the command line, the hooks directory can be specified using the --hooks_dir <hooks_path> argument. The python hook and the _predict_inp.json or predict_inp.csv should be present in the hooks directory.
Batch command for training a PhysicsAI model:
<install location>/altair/hwdesktop/hw/eds/linux/edspy.sh -physicsai -train <model name.psmdl to be trained> -dataset <path to dataset> -spec <path to model spec>
Note: In the batch command for training above, the dataset and spec files are already existing while the .psmdl file is generated after the execution of the command. You only specify the name of the PhysicsAI model.

For example, to train a model named Bracket_displacement, the command would be:

<install location>/altair/hwdesktop/hw/eds/linux/edspy.sh -physicsai -train Bracket_displacement.psmdl -dataset "C:\PhysicsAI\Ibeam_project\New folder\Bracket_train.psdata" -spec “C:\PhysicsAI\Ibeam_project\New folder\spec_24_02_21_17_29_59.pscfg”

This will train a model in batch mode and generate a model called Bracket_displacement.psmdl.

Batch command for predicting on a new mesh or CAD model:

<install location>/altair/hwdesktop/hw/eds/linux/edspy.sh -physicsai -predict_write <output file name> -model <path to model> -input_file <path to input file>
Note: On Windows, the paths above will be slightly different. For example:
<install>\hwdesktop\hw\eds\bin\win64\edspy.bat

Create a Dataset

Batch command to create a dataset:
edspy.bat --physicsai --create-dataset <dataset_path> --spec <spec_file> 
<dataset_path> is the name of the dataset file you will create.

(*.psdata) <spec_file> is the path to the file that contains all the information about the dataset.