OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
c_h3d_update_solid_scalar.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_update_solid_scalar_ (my_real *TT, int *IH3D, int *ITAB, int *NUMNOD, int *IXS, int *NIXS, int *NUMELS, int *IPARTS, my_real *FUNC, int *ID_ELEM, int *CPT_DATATYPE, int *ITY_ELEM, int *NUMELQ, int *NUMELT, int *NUMELP, int *NUMELR, int *IS_WRITTEN)
void _FCALL C_H3D_UPDATE_SOLID_SCALAR (my_real *TT, int *IH3D, int *ITAB, int *NUMNOD, int *IXS, int *NIXS, int *NUMELS, int *IPARTS, my_real *FUNC, int *ID_ELEM, int *CPT_DATATYPE, int *ITY_ELEM, int *NUMELQ, int *NUMELT, int *NUMELP, int *NUMELR, int *IS_WRITTEN)
void c_h3d_update_solid_scalar__ (my_real *TT, int *IH3D, int *ITAB, int *NUMNOD, int *IXS, int *NIXS, int *NUMELS, int *IPARTS, my_real *FUNC, int *ID_ELEM, int *CPT_DATATYPE, int *ITY_ELEM, int *NUMELQ, int *NUMELT, int *NUMELP, int *NUMELR, int *IS_WRITTEN)
void c_h3d_update_solid_scalar (my_real *TT, int *IH3D, int *ITAB, int *NUMNOD, int *IXS, int *NIXS, int *NUMELS, int *IPARTS, my_real *FUNC, int *ID_ELEM, int *CPT_DATATYPE, int *ITY_ELEM, int *NUMELQ, int *NUMELT, int *NUMELP, int *NUMELR, int *IS_WRITTEN)

Macro Definition Documentation

◆ _FCALL [1/2]

#define _FCALL

Definition at line 50 of file c_h3d_update_solid_scalar.cpp.

◆ _FCALL [2/2]

#define _FCALL

Definition at line 50 of file c_h3d_update_solid_scalar.cpp.

Function Documentation

◆ C_H3D_UPDATE_SOLID_SCALAR()

void _FCALL C_H3D_UPDATE_SOLID_SCALAR ( my_real * TT,
int * IH3D,
int * ITAB,
int * NUMNOD,
int * IXS,
int * NIXS,
int * NUMELS,
int * IPARTS,
my_real * FUNC,
int * ID_ELEM,
int * CPT_DATATYPE,
int * ITY_ELEM,
int * NUMELQ,
int * NUMELT,
int * NUMELP,
int * NUMELR,
int * IS_WRITTEN )

Definition at line 132 of file c_h3d_update_solid_scalar.cpp.

135{c_h3d_update_solid_scalar_ (TT,IH3D,ITAB,NUMNOD,IXS,NIXS,NUMELS,IPARTS,FUNC,ID_ELEM,CPT_DATATYPE,ITY_ELEM,
136 NUMELQ,NUMELT,NUMELP,NUMELR,IS_WRITTEN);}
void c_h3d_update_solid_scalar_(my_real *TT, int *IH3D, int *ITAB, int *NUMNOD, int *IXS, int *NIXS, int *NUMELS, int *IPARTS, my_real *FUNC, int *ID_ELEM, int *CPT_DATATYPE, int *ITY_ELEM, int *NUMELQ, int *NUMELT, int *NUMELP, int *NUMELR, int *IS_WRITTEN)
#define FUNC
Definition clamov.c:8

◆ c_h3d_update_solid_scalar()

void c_h3d_update_solid_scalar ( my_real * TT,
int * IH3D,
int * ITAB,
int * NUMNOD,
int * IXS,
int * NIXS,
int * NUMELS,
int * IPARTS,
my_real * FUNC,
int * ID_ELEM,
int * CPT_DATATYPE,
int * ITY_ELEM,
int * NUMELQ,
int * NUMELT,
int * NUMELP,
int * NUMELR,
int * IS_WRITTEN )

Definition at line 144 of file c_h3d_update_solid_scalar.cpp.

147{c_h3d_update_solid_scalar_ (TT,IH3D,ITAB,NUMNOD,IXS,NIXS,NUMELS,IPARTS,FUNC,ID_ELEM,CPT_DATATYPE,ITY_ELEM,
148 NUMELQ,NUMELT,NUMELP,NUMELR,IS_WRITTEN);}

◆ c_h3d_update_solid_scalar_()

void c_h3d_update_solid_scalar_ ( my_real * TT,
int * IH3D,
int * ITAB,
int * NUMNOD,
int * IXS,
int * NIXS,
int * NUMELS,
int * IPARTS,
my_real * FUNC,
int * ID_ELEM,
int * CPT_DATATYPE,
int * ITY_ELEM,
int * NUMELQ,
int * NUMELT,
int * NUMELP,
int * NUMELR,
int * IS_WRITTEN )

Definition at line 78 of file c_h3d_update_solid_scalar.cpp.

81{
82 int i;
83 int offset;
84 H3D_ID elem_id;
85 H3D_ID comp_id;
86//
87 // initialize
88
89 try {
90 // create Subcase (Loadcase)
91 unsigned int max_sims = 10;
92 unsigned int sub_count = 1;
93 float elem_result[] = { 0.0f, 0.0f, 0.0f };
94
95 // create Result Data sets
96 unsigned int num_corners = 0;
97 unsigned int num_modes = 0;
98 bool complex = false;
99 float value[1] ;
100
101 sim_idx = *IH3D;
102
103 if( *NUMELS != 0)
104 {
105 rc = Hyper3DDatasetBegin(h3d_file, *NUMELS, sim_idx, subcase_id, H3D_DS_ELEM,
106 H3D_DS_SCALAR, num_corners, num_modes, *CPT_DATATYPE,
108 if( !rc ) throw rc;
109
110 for( i = 0; i < *NUMELS; i++ )
111 {
112 if( ITY_ELEM[i] == 1 && IS_WRITTEN[i] == 1)
113 {
114 elem_id = ID_ELEM[i];
115 elem_result[0] = FUNC[i];
116 rc = Hyper3DDatasetWrite(h3d_file, elem_id, &elem_result[0]);
117 IS_WRITTEN[i] = 0;
118 }
119 }
121 if( !rc ) throw rc;
122 }
123
124 } // end of try
125
126 catch(...) {
128 }
129
130}
H3DFileInfo * h3d_file
bool rc
H3D_ID comp_id
H3D_ID solid_poolname_id
H3D_SIM_IDX sim_idx
H3D_ID subcase_id
bool Hyper3DDatasetBegin(H3DFileInfo *h3d_file, unsigned int count, H3D_SIM_IDX idx, H3D_ID subcase_id, H3D_DS_TYPE type, H3D_DS_FORMAT format, unsigned int num_corners, unsigned int num_modes, H3D_ID dt_id, int layer_idx, H3D_ID data_poolname_id, bool complex)
Definition h3d_dl.c:1352
bool Hyper3DExportClearError(H3DFileInfo *h3d_file)
Definition h3d_dl.c:939
bool Hyper3DDatasetEnd(H3DFileInfo *h3d_file)
Definition h3d_dl.c:1400
bool Hyper3DDatasetWrite(H3DFileInfo *h3d_file, H3D_ID id, const float *data)
Definition h3d_dl.c:1372
integer, dimension(:), allocatable offset
Definition rad2r.F:53

◆ c_h3d_update_solid_scalar__()

void c_h3d_update_solid_scalar__ ( my_real * TT,
int * IH3D,
int * ITAB,
int * NUMNOD,
int * IXS,
int * NIXS,
int * NUMELS,
int * IPARTS,
my_real * FUNC,
int * ID_ELEM,
int * CPT_DATATYPE,
int * ITY_ELEM,
int * NUMELQ,
int * NUMELT,
int * NUMELP,
int * NUMELR,
int * IS_WRITTEN )

Definition at line 138 of file c_h3d_update_solid_scalar.cpp.

141{c_h3d_update_solid_scalar_ (TT,IH3D,ITAB,NUMNOD,IXS,NIXS,NUMELS,IPARTS,FUNC,ID_ELEM,CPT_DATATYPE,ITY_ELEM,
142 NUMELQ,NUMELT,NUMELP,NUMELR,IS_WRITTEN);}