cratepy.ioput.readprocedures.read_rve_dimensions

read_rve_dimensions(file, file_path, keyword, n_dim)[source]

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

The specification of the data associated with the RVE dimensions has the following input data file syntax:

2D Problem:

RVE_Dimensions
< dim1_size > < dim2_size >

where dimX_size is the size length along dimension X.


3D Problem:

RVE_Dimensions
< dim1_size > < dim2_size > < dim3_size >

where dimX_size is the size length along dimension X.


Parameters:
  • file (file) – Data file.

  • file_path (str) – Data file path.

  • keyword (str) – Keyword.

  • n_dim (int) – Problem number of spatial dimensions.

Returns:

rve_dims – RVE size in each dimension.

Return type:

list[float]