OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
c_h3d_update_fvmbag_nodes.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_fvmbag_nodes_ (char *name, int *size, int *IH3D, int *ITAB, int *NUMNOD, my_real *D)
void _FCALL C_H3D_UPDATE_FVMBAG_NODES (char *name, int *size, int *IH3D, int *ITAB, int *NUMNOD, my_real *D)
void c_h3d_update_fvmbag_nodes__ (char *name, int *size, int *IH3D, int *ITAB, int *NUMNOD, my_real *D)
void c_h3d_update_fvmbag_nodes (char *name, int *size, int *IH3D, int *ITAB, int *NUMNOD, my_real *D)

Macro Definition Documentation

◆ _FCALL [1/2]

#define _FCALL

Definition at line 50 of file c_h3d_update_fvmbag_nodes.cpp.

◆ _FCALL [2/2]

#define _FCALL

Definition at line 50 of file c_h3d_update_fvmbag_nodes.cpp.

Function Documentation

◆ C_H3D_UPDATE_FVMBAG_NODES()

void _FCALL C_H3D_UPDATE_FVMBAG_NODES ( char * name,
int * size,
int * IH3D,
int * ITAB,
int * NUMNOD,
my_real * D )

Definition at line 128 of file c_h3d_update_fvmbag_nodes.cpp.

129{c_h3d_update_fvmbag_nodes_ (name,size,IH3D,ITAB,NUMNOD,D);}
void c_h3d_update_fvmbag_nodes_(char *name, int *size, int *IH3D, int *ITAB, int *NUMNOD, my_real *D)

◆ c_h3d_update_fvmbag_nodes()

void c_h3d_update_fvmbag_nodes ( char * name,
int * size,
int * IH3D,
int * ITAB,
int * NUMNOD,
my_real * D )

Definition at line 134 of file c_h3d_update_fvmbag_nodes.cpp.

135{c_h3d_update_fvmbag_nodes_ (name,size,IH3D,ITAB,NUMNOD,D);}

◆ c_h3d_update_fvmbag_nodes_()

void c_h3d_update_fvmbag_nodes_ ( char * name,
int * size,
int * IH3D,
int * ITAB,
int * NUMNOD,
my_real * D )

Definition at line 80 of file c_h3d_update_fvmbag_nodes.cpp.

81{
82 int i;
83 float node[3];
84 H3D_ID node_id;
85
86 // initialize
87
88 try {
89 // create Subcase (Loadcase)
90 unsigned int max_sims = 10;
91 unsigned int sub_count = 1;
92
93 // create Result Data sets
94 unsigned int num_corners = 0;
95 unsigned int num_modes = 0;
96 bool complex = false;
97
98 H3D_ID dt_id = 2; // the displacement data type
99 sim_idx = *IH3D;
100 if( *NUMNOD != 0)
101 {
102 rc = Hyper3DDatasetBegin(h3d_file, *NUMNOD , sim_idx, subcase_id, H3D_DS_NODE,
103 H3D_DS_VECTOR, num_corners, num_modes, dt_id,
104 H3D_DS_NO_LAYER, node_poolname_id, complex);
105 if( !rc ) throw rc;
106
107 for( i = 0; i < *NUMNOD; i++ ) {
108 node[0] = D[3*i ];
109 node[1] = D[3*i + 1];
110 node[2] = D[3*i + 2];
111 node_id = ITAB[i];
112 if (node_id != 0 ) rc = Hyper3DDatasetWrite(h3d_file, node_id, node);
113 if( !rc ) throw rc;
114 }
115
117 if( !rc ) throw rc;
118
119 }
120
121 } // end of try
122
123 catch(...) {
125 }
126}
H3DFileInfo * h3d_file
H3D_ID node_poolname_id
bool rc
H3D_SIM_IDX sim_idx
H3D_ID subcase_id
H3D_ID dt_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

◆ c_h3d_update_fvmbag_nodes__()

void c_h3d_update_fvmbag_nodes__ ( char * name,
int * size,
int * IH3D,
int * ITAB,
int * NUMNOD,
my_real * D )

Definition at line 131 of file c_h3d_update_fvmbag_nodes.cpp.

132{c_h3d_update_fvmbag_nodes_ (name,size,IH3D,ITAB,NUMNOD,D);}