Check Model Compatibility

This application is used to check if a model is compatible with a particular target code, or plugin. It can also be used to further isolate and resolve geometry and material errors.

Attention

This application is fully integrated in the Viewing and Archiving Model Configurations and Viewing and Archiving Assemblies applications as a sub mode, and it is rarely necessary to create a standalone input script.

Typical Use Cases

  1. Check if the geometry input is valid for a target code.

  2. Further isolate and resolve errors or incompatibilities with the model geometry.

Additional Input Parameters

In the following check denotes a model_checker parameter set, created as follows:

import applications.model_checker as app

check = app.parameters()

This application supports all parameters related to input generation, as well as the following:

check.target

The assembly or core configuration that should be checked. Any of the following is supported:

  • Full filepath to an assembly archive (.asm) file, or model configuration (.mco) file.

  • A component.

  • A complete model configuration.

Note

When using the embedded mode in the Viewing and Archiving Model Configurations and Viewing and Archiving Assemblies applications, this parameter is set automatically.

check.frame

: tuple [length]

Specify a specific rectangular area to focus the test on. Should be three length values, giving the \(x\), \(y\) and \(z\) extend respectively.

If not specified, the entire bounding box of check.target will be used.

check.center

: point

Where the check.frame should be centred.

Note

This parameter is only used if :check.frame is set.

Command Line Usage

This application supports the following command line flags:

--config-file <str>

Targets app_param.config_file.

--target-mode <str>

Targets app_param.target_mode. See Plugin Data Model and Application Support for how the application behaves in different target codes.

--particles <int>

Targets app_param.particles.

--frame <float float float>

Targets check.frame.

If not specified, the bounding box of the entire model will be used.

--center <float float float>

Targets check.center.

The standard pre, execute, post, and run modes are supported by this application mode.

Examples

The following