cratepy.ioput.readprocedures

Input data file reading and checking procedures.

This module includes a set of general and specific functions to read and process data from the input data file. These functions also perform some checks on the input data to avoid downstream execution errors.

Functions

searchkeywordline

Search mandatory keyword in data file and get corresponding line number.

searchoptkeywordline

Search optional keyword in data file and get corresponding line number.

readtypeAkeyword

Read keyword of specification type A.

readtypeBkeyword

Read keyword of specification type B.

read_material_properties

Read material phases data and properties.

read_macroscale_loading

Read macroscale loading constraints.

read_mac_load_increm

Read macroscale loading incrementation.

decode_increm_spec

Decode macroscale loading increment specification.

read_phase_clustering

Read (base) number of clusters associated with each material phase.

read_clustering_scheme

Read material phase’s prescribed clustering scheme.

check_clustering_scheme

Check material phase’s prescribed clustering scheme.

read_adaptivity_frequency

Read clustering adaptivity frequency.

read_rewind_state_parameters

Read the solution rewind state criterion parameters.

read_rewinding_criterion_parameters

Read the solution rewinding criterion parameters.

read_discretization_file_path

Read spatial discretization file path.

read_rve_dimensions

Read RVE dimensions (size length along each spatial dimension).

read_self_consistent_scheme

Read self-consistent scheme and associated parameters.

read_vtk_options

Read VTK output options.

Functions

check_clustering_scheme(mat_phase, ...)

Check material phase's prescribed clustering scheme.

decode_increm_spec(spec, load_time_factor)

Decode macroscale loading increment specification.

get_available_material_models([model_source])

Get available material constitutive models.

get_formatted_parameter(parameter, x[, etype])

Get string parameter converted to appropriate type.

read_adaptivity_frequency(file, file_path, ...)

Read clustering adaptivity frequency.

read_cluster_analysis_scheme(file, ...)

Read cluster analysis scheme.

read_clustering_scheme(file, file_path, ...)

Read material phase's prescribed clustering scheme.

read_discretization_file_path(file, ...[, ...])

Read spatial discretization file path.

read_mac_load_increm(file, file_path, ...)

Read macroscale loading incrementation.

read_macroscale_loading(file, file_path, ...)

Read macroscale loading constraints.

read_material_properties(file, file_path, ...)

Read material phases data and properties.

read_phase_clustering(file, file_path, ...)

Read (base) number of clusters associated with each material phase.

read_rewind_state_parameters(file, ...)

Read the solution rewind state criterion parameters.

read_rewinding_criterion_parameters(file, ...)

Read the solution rewinding criterion parameters.

read_rve_dimensions(file, file_path, ...)

Read RVE dimensions (size length along each spatial dimension).

read_self_consistent_scheme(file, file_path, ...)

Read self-consistent scheme and associated parameters.

read_vtk_options(file, file_path, keyword, ...)

Read VTK output options.

readtypeAkeyword(file, file_path, keyword, ...)

Read keyword of specification type A.

readtypeBkeyword(file, file_path, keyword)

Read keyword of specification type B.

searchkeywordline(file, keyword)

Search mandatory keyword in data file and get corresponding line number.

searchoptkeywordline(file, keyword)

Search optional keyword in data file and get corresponding line number.

Classes

AdaptivityManager(strain_formulation, ...)

CRVE clustering adaptivity manager.

CRVE(rve_dims, regular_grid, ...[, ...])

Cluster-Reduced Representative Volume Element.

Elastic(strain_formulation, problem_type, ...)

Linear elastic constitutive model.

ElasticReferenceMaterial(strain_formulation, ...)

Elastic reference material.

RewindManager(rewind_state_criterion, ...[, ...])

Manage analysis rewind operations and evaluate analysis rewind criteria.

SCRMP(mat_phase, cluster_data_matrix, n_clusters)

Static Cluster-Reduced Material Phase (SCRMP).

StVenantKirchhoff(strain_formulation, ...)

St.Venant-Kirchhoff hyperelastic constitutive model.

VonMises(strain_formulation, problem_type, ...)

Von Mises constitutive model with isotropic strain hardening.