readcae3d
Reads data from a given file using the 3D CAE Readers. readcae3d uses the CAE readers provided with Compose that require access to model information, such as corner data, averaging method, layer and coordinate system.
Syntax
readcae3d(filename, datatype, request, component, time, cornerdata, coordsys, averaging, layer)
readcae3d(filename, subcase, datatype, request, component, time, cornerdata, coordsys, averaging, layer)
readcae3d(filename, datatype, request, component, time, [], [], [], [])
readcae3d(filename, subcase, datatype, request, component, time, [], [], [], [])
R = readcae3d(...)
Inputs
- filename
- Path of the file.
- subcase
- Subcase name or index in the file.
- datatype
- Type name or index in the file.
- request
- Request name or index, list of indices, list of names, or range of indices.
- component
- Component name or index, list of indices, list of names, or range of indices.
- time
- Time name or index, list of indices, list of names, or range of indices.
- cornerdata
- Flag to enable corner data or not, with values 'only', true, or false (default). [] uses the default value. Value 'only' behaves similar to the Use corner data selection in HyperView.
- coordsys
- Coordinate system from where the results will be extracted, with values 'global' (default), 'analysis' or 'elemental'. [] uses the default value.
- averaging
- For string format input, supported strings are averaging method values.
- layer
- Layer of the result (if applicable), with values 'max' (default), 'min', 'extreme', 'sum', 'average', 'range', 'count', 'maxlayer', 'minlayer', 'top', 'bottom', output of getlayerindex3d, getlayername3d. [] uses the default value.
Outputs
- R
- Output in matrix format. The first dimension of the matrix stores the requests, the second dimension stores the different components and the third dimension stores the different time steps.
Example 1
Example with default arguments to query all components from all requests from the first subcase and the first type:
R = readcae3d('tutorials/Comp-plate-1LC.h3d',1,1,[],[],[],[],[],[],[])
R =
slice(:, :, 1) =
1.41119 -29.42254 63.96678 70.42319
1.40949 -19.27447 42.20516 46.41947
1.40967 -19.24108 42.13372 46.34066
1.40985 -19.20770 42.06228 46.26185
1.41003 -19.17431 41.99084 46.18304
1.41021 -19.14092 41.91941 46.10423
1.41040 -19.10754 41.84797 46.02542
1.41059 -19.07415 41.77653 45.94662
1.41076 -19.04077 41.70510 45.86782
1.41095 -19.00738 41.63366 45.78901
(...)
Example 2
Example with default arguments to query component 'X' from all requests from the the subcase 'Subcase 1 (LC-Tens)', type 'Displacement', using the analysis coordinate system:
R = readcae3d('tutorials/Comp-plate-1LC.h3d','Subcase 1 (LC-Tens)','Displacement',[],'X',[],[],'analysis',[],[])
R =
slice(:, :, 1) =
1.41119
1.40949
1.40967
1.40985
1.41003
1.41021
1.41040
(...)
Example 3
Example with default arguments to query all components from the first request from the the subcase 'Subcase 1 (LC-Tens)', type 'Displacement', using simple averaging method:
R = readcae3d('tutorials/Comp-plate-1LC.h3d','Subcase 1 (LC-Tens)','Displacement',1,[],[],[],[],'simple',[])
Warning: averaging method is not applicable for vectors and will be ignored
R =
slice(:, :, 1) =
1.41119 -29.42254 63.96678 70.42319
Example 4
Example with default arguments to query all components from the first request from the the subcase 'Subcase 1 (LC-Tens)', type 'Displacement', enabling corner data, which is not applicable for scalars:
R = readcae3d('tutorials/Comp-plate-1LC.h3d','Subcase 1 (LC-Tens)','Displacement',1,[],[],true,[],[],[])
R =
slice(:, :, 1) =
1.41119 -29.42254 63.96678 70.42319
Example 5
Example with corner data value 'only' option:
R=readcae3d('tutorials/bullet.op2',1,3,[],'vonMises',[],'only',[],'simple',[]);
maxval=max(R)
minval=min(R)
maxval = 15492.6846
minval = 75.8540039
Example 6
Example with averaging input struct:
R=readcae3d('tutorials/bullet.op2',1,3,[],'vonMises',[],'only',[],struct('average_method','simple','average','nodes_advanced'),[]);
maxval=max(R)
minval=min(R)
maxval = 15075.5029
minval = 70.1039734
Example 7
Example with layer index:
layerindex = getlayerindex3d('tutorials/flatPlateModelingTechniques_OS.h3d',1,2,'Z2');
R=readcae3d('tutorials/flatPlateModelingTechniques_OS.h3d',1,2,[],1,[],[],[],[],layerindex);
maxval=max(R)
minval=min(R)
maxval = 34037.4961
minval = 26.2207851
Example 8
Example with layer name:
layername = getlayername3d('tutorials/flatPlateModelingTechniques_OS.h3d',1,2,2);
R=readcae3d('tutorials/flatPlateModelingTechniques_OS.h3d',1,2,[],1,[],[],[],[],layername);
maxval=max(R)
minval=min(R)
maxval = 34037.4961
minval = 26.2207851
Comments
The result files coming from the following simulations are not supported yet:
- Multibody Simulation
- RADIOSS
- abstat
Coordinate system is not applicable for scalars and is ignored with a user warning.
Averaging method is not applicable for vectors and is ignored with a user warning.
Layer is not applicable for vectors and is ignored with a user warning.
Corner data is not applicable for scalars. An averaging method should be given if corner data is set to true.