createh3dsubcase
Creates a subcase to be added to the H3D file. This is optional.
Syntax
subcaseID = createh3dsubcase(fid, subcase, sims_names, [, options])
subcaseID = createh3dsubcase(fid, subcase, steps, [, options])
subcaseID = createh3dsubcase(fid, subcase, sims_names, steps, [, options])
Inputs
- fid
- Integer representing the file ID.
- subcase
- Name of the subcase.
- sims_names
- A string cell with simulation names. If no steps are provided, they will be considered as the index starting from 0 (0.0, 1.0, and so on).
- timestep
- Optional argument that specifies the timestep. Numeric steps associated for each simulation.
- options
-
- complex
- If the keyword “complex” is present, you can add complex data to the subcase.
- datatypes
- ("all" (default) | string | scalar | matrix | string cell)
Outputs
- subcaseID
- Integer representing the ID of the subcase.
Examples
sidx1 =createh3dsubcase(idx, 'Subcase 2', {'SC2 Iteration 1' 'SC2 Iteration 2'}, [0.0 1.0]);
sidx2 = createh3dsubcase(idx, 'Subcase 2', {'SC2 Iteration 1'},'complex');
Comments
When creating an H3D file in append mode, the createh3dsubcase command creates subcases with an ID starting at 1. The append mode should not be considered to add new subcases to an H3D file that already contains other subcases.
mag = sqrt(real^2+imag^2)
pha = atan(imag/real)