1. i-SAS_StructuralModeler-template

1.1. interface

class structural_modeler.interface.InterfaceModeler(structural_model_name, **kwargs)

Bases: object

interface class of modeler

package_name = 'structural_modeler'
abstract __init__(structural_model_name, **kwargs)

initialization of interface class of modeler

Parameters
  • structural_model_name (str) – structural model name.

  • **kwargs – Arbitrary keyword arguments.

abstract set_project(project_name)

set project

Parameters

project_name (str) – project name.

__call__()

get structural model

Returns

structural model. The key is structural model name.

Return type

dict

class structural_modeler.interface.InterfaceCreator(structural_model_name, geometry_setting, **kwargs)

Bases: structural_modeler.interface.InterfaceModeler

interface class of creator

__init__(structural_model_name, geometry_setting, **kwargs)

initialization of interface class of creator

Parameters
  • structural_model_name (str) – structural model name.

  • geometry_setting (dict) – geometry setting data

  • **kwargs – Arbitrary keyword arguments.

set_project(project_name)

set project of creator

Parameters

project_name (str) – project name.

class structural_modeler.interface.InterfaceImporter(structural_model_name, filename, data_format, **kwargs)

Bases: structural_modeler.interface.InterfaceModeler

interface class of importer

__init__(structural_model_name, filename, data_format, **kwargs)

initialization of interface class of importer

Parameters
  • structural_model_name (str) – structural model name.

  • filename (str) – filename of import file.

  • data_format (str) – ‘isas’, ‘nastran’, or ‘ansys’

  • **kwargs – Arbitrary keyword arguments.

set_project(project_name)

set project of importer

Parameters

project_name (str) – project name.

class structural_modeler.interface.InterfaceConverter(structural_model_name, input_model, model_type, **kwargs)

Bases: structural_modeler.interface.InterfaceModeler

interface class of converter

__init__(structural_model_name, input_model, model_type, **kwargs)

initialization of interface class of converter

Parameters
  • structural_model_name (str) – structural model name.

  • input_model (dict) – original model.

  • model_type (str) – model type after conversion. ‘point_cloud’, ‘fe’, or ‘graph’

  • **kwargs – Arbitrary keyword arguments.

set_project(project_name)

set project of converter

Parameters

project_name (str) – project name.

1.2. model

class structural_modeler.model.ModelCreator(geometry_setting, cfg)

Bases: object

model class of creator

__init__(geometry_setting, cfg)

constructor

Parameters
  • geometry_setting (dict) – geometry setting data.

  • cfg (dict) – config.

__call__()

create model

Returns

created model whose keys are model component type and ‘model_type’.

Return type

dict

class structural_modeler.model.ModelImporter(filename, data_format, cfg)

Bases: object

model class of importer

__init__(filename, data_format, cfg)

constructor

Parameters
  • filename (str) – filename of import file.

  • data_format (str) – ‘isas’, ‘nastran’, or ‘ansys’.

  • cfg (dict) – config.

__call__()

import model

Returns

created model whose keys are model component type and ‘model_type’.

Return type

dict

class structural_modeler.model.ModelConverter(input_model, model_type, cfg)

Bases: object

model class of converter

__init__(input_model, model_type, cfg)

constructor

Parameters
  • input_model (dict) – original model.

  • model_type (str) – model type after conversion. ‘point_cloud’, ‘fe’, or ‘graph’.

  • cfg (dict) – config.

__call__()

convert model to other type

Returns

created model whose keys are model component type and ‘model_type’.

Return type

dict