OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
c_h3d_create_results_end.cpp File Reference
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <fcntl.h>
#include <sys/resource.h>
#include <sys/types.h>
#include <time.h>
#include <sys/stat.h>
#include <unistd.h>
#include <dlfcn.h>
#include <stdbool.h>
#include "h3dpublic_defs.h"
#include "h3dpublic_export.h"
#include "h3d_values.h"

Go to the source code of this file.

Macros

#define _FCALL
#define _FCALL

Functions

void c_h3d_create_results_end_ ()
void _FCALL C_H3D_CREATE_RESULTS_END ()
void c_h3d_create_results_end__ ()
void c_h3d_create_results_end ()

Macro Definition Documentation

◆ _FCALL [1/2]

#define _FCALL

Definition at line 50 of file c_h3d_create_results_end.cpp.

◆ _FCALL [2/2]

#define _FCALL

Definition at line 50 of file c_h3d_create_results_end.cpp.

Function Documentation

◆ C_H3D_CREATE_RESULTS_END()

void _FCALL C_H3D_CREATE_RESULTS_END ( )

Definition at line 176 of file c_h3d_create_results_end.cpp.

void c_h3d_create_results_end_()

◆ c_h3d_create_results_end()

void c_h3d_create_results_end ( )

Definition at line 182 of file c_h3d_create_results_end.cpp.

◆ c_h3d_create_results_end_()

void c_h3d_create_results_end_ ( )

Definition at line 70 of file c_h3d_create_results_end.cpp.

71{
72
73 unsigned int * datatype_ids = new unsigned int [dt_count];
74 try {
75
76 // create Result defaults
77 unsigned int res_count = 1;
78 unsigned int asys_count = 1;
79
80 rc = Hyper3DResultBegin(h3d_file, res_count);
81 if( !rc ) throw rc;
82 rc = Hyper3DResultWrite(h3d_file, "Result", H3D_SM_MIDPOINT, asys_count);
83
84 if( !rc ) throw rc;
86 H3D_DS_ANALYSIS, H3D_POOL_ELEMENT);
87
88 if( !rc ) throw rc;
90 H3D_DS_GLOBAL, H3D_POOL_ELEMENT);
91
92 if( !rc ) throw rc;
94 H3D_DS_GLOBAL, H3D_POOL_ELEMENT);
95
96 if( !rc ) throw rc;
98 H3D_DS_GLOBAL, H3D_POOL_ELEMENT);
99
100 if( !rc ) throw rc;
102 H3D_DS_ANALYSIS, H3D_POOL_ELEMENT);
103
104 if( !rc ) throw rc;
106 H3D_DS_ANALYSIS, H3D_POOL_ELEMENT);
107 if( !rc ) throw rc;
108
110 H3D_DS_ANALYSIS, H3D_POOL_ELEMENT);
111 if( !rc ) throw rc;
112
114 H3D_DS_GLOBAL, H3D_POOL_ELEMENT);
115 if( !rc ) throw rc;
116
118 H3D_DS_GLOBAL, H3D_POOL_ELEMENT);
119 if( !rc ) throw rc;
120
122 H3D_DS_ANALYSIS, H3D_POOL_ELEMENT);
123 if( !rc ) throw rc;
124
126 H3D_DS_ANALYSIS, H3D_POOL_ELEMENT);
127 if( !rc ) throw rc;
128
129
130 if( !rc ) throw rc;
132 if( !rc ) throw rc;
133
134
135 // create Subcase (Loadcase)
136 for( int i=0; i < dt_count; i++ )
137 {
138 datatype_ids[i] = i + 1;
139 }
140
141 unsigned int sub_count = 1;
142 rc = Hyper3DSimSubcaseBegin(h3d_file, sub_count);
143 if( !rc ) throw rc;
144 rc = Hyper3DSimSubcaseWrite(h3d_file, "Loadcase 1", subcase_id, H3D_NONLINEAR,
145 dt_count, datatype_ids, H3D_NODAL_DISPLACEMENT);
146 if( !rc ) throw rc;
147
148 unsigned int anim_grp_count = 1;
149 unsigned int grp_datatype_ids = 1;
150 unsigned int num_dts_per_grp = 3;
151
152 datatype_ids[0] = 2;
153 datatype_ids[1] = dt_count-1;
154 datatype_ids[2] = dt_count;
155
157 &grp_datatype_ids, &num_dts_per_grp, &datatype_ids[0]);
158 if( !rc ) throw rc;
159
161 if( !rc ) throw rc;
162
163 } // end of try
164
165 catch(...) {
167 }
168 delete [] datatype_ids;
169
170 bool rc2 = Hyper3DWriteTOC(h3d_file);
171}
H3D_ID shell_poolname_id
H3DFileInfo * h3d_file
unsigned int dt_count
H3D_ID node_poolname_id
bool rc
H3D_ID spring_poolname_id
H3D_ID sh4n_poolname_id
H3D_ID beam_poolname_id
H3D_ID sh3n_poolname_id
H3D_ID solid_poolname_id
H3D_ID subcase_id
H3D_ID sphcell_poolname_id
H3D_ID skin_poolname_id
H3D_ID truss_poolname_id
H3D_ID quad_poolname_id
bool Hyper3DResultAddSystem(H3DFileInfo *h3d_file, H3D_ID poolname_id, int system_id, H3D_ID_POOL_TYPE sysType)
Definition h3d_dl.c:1231
bool Hyper3DWriteTOC(H3DFileInfo *h3d_file)
Definition h3d_dl.c:934
bool Hyper3DResultWrite(H3DFileInfo *h3d_file, const char *label, H3D_DS_SHELL_METHOD method, unsigned int num_systems)
Definition h3d_dl.c:1224
bool Hyper3DSimSubcaseAnimationGroups(H3DFileInfo *h3d_file, H3D_ID id, unsigned int num_groups, H3D_ID *grp_datatype_ids, unsigned int *num_dts_per_grp, H3D_ID *datatype_ids)
Definition h3d_dl.c:1265
bool Hyper3DResultEnd(H3DFileInfo *h3d_file)
Definition h3d_dl.c:1239
bool Hyper3DExportClearError(H3DFileInfo *h3d_file)
Definition h3d_dl.c:939
bool Hyper3DSimSubcaseEnd(H3DFileInfo *h3d_file)
Definition h3d_dl.c:1275
bool Hyper3DSimSubcaseWrite(H3DFileInfo *h3d_file, const char *label, H3D_ID id, H3D_ANALYSIS_TYPE atype, unsigned int num_datatypes, H3D_ID *datatype_ids, H3D_NODAL_DATA_TYPE anim_type)
Definition h3d_dl.c:1255
bool Hyper3DSimSubcaseBegin(H3DFileInfo *h3d_file, unsigned int count)
Definition h3d_dl.c:1249
bool Hyper3DResultBegin(H3DFileInfo *h3d_file, unsigned int count)
Definition h3d_dl.c:1218

◆ c_h3d_create_results_end__()

void c_h3d_create_results_end__ ( )

Definition at line 179 of file c_h3d_create_results_end.cpp.