OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
c_h3d_create_displacement_datatype.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_displacement_datatype_ ()
void _FCALL C_H3D_CREATE_DISPLACEMENT_DATATYPE ()
void c_h3d_create_displacement_datatype__ ()
void c_h3d_create_displacement_datatype ()

Macro Definition Documentation

◆ _FCALL [1/2]

#define _FCALL

Definition at line 50 of file c_h3d_create_displacement_datatype.cpp.

◆ _FCALL [2/2]

#define _FCALL

Definition at line 50 of file c_h3d_create_displacement_datatype.cpp.

Function Documentation

◆ C_H3D_CREATE_DISPLACEMENT_DATATYPE()

void _FCALL C_H3D_CREATE_DISPLACEMENT_DATATYPE ( )

◆ c_h3d_create_displacement_datatype()

void c_h3d_create_displacement_datatype ( )

◆ c_h3d_create_displacement_datatype_()

void c_h3d_create_displacement_datatype_ ( )

Definition at line 71 of file c_h3d_create_displacement_datatype.cpp.

72{
73 try {
74 // create result data types
75
76
78 if( !rc ) throw rc;
79
80 pool_count = 1;
81 dt_id = 1; // the displacement data type
82
83 rc = Hyper3DDatatypeWrite(h3d_file, "Animation", dt_id, H3D_DS_NONE,
84 H3D_DS_UNKNOWN, pool_count);
85 if( !rc ) throw rc;
86
87 dt_id ++;
88 pool_count = 1;
89 rc = Hyper3DDatatypeWrite(h3d_file, "Displacement", dt_id, H3D_DS_VECTOR,
90 H3D_DS_NODE, pool_count);
91 if( !rc ) throw rc;
94 if( !rc ) throw rc;
95
97 if( !rc ) throw rc;
98/*
99 // create Simulations
100 H3D_SIM_IDX sim_idx;
101 rc = Hyper3DSimulationBegin(h3d_file, max_sims, subcase_id);
102 if( !rc ) throw rc;
103
104 for( sim_idx=0; sim_idx < max_sims; sim_idx++ ) {
105 char name[32];
106 snprintf(name, sizeof(name), "Increment = %ld", sim_idx);
107 rc = Hyper3DSimulationWrite(h3d_file, sim_idx, name, (float)sim_idx);
108 if( !rc ) throw rc;
109 }
110 rc = Hyper3DSimulationEnd(h3d_file);
111 if( !rc ) throw rc;
112*/
113
114 } // end of try
115
116 catch(...) {
118 }
119
120}
H3DFileInfo * h3d_file
unsigned int pool_count
unsigned int dt_count
bool has_corners
H3D_ID node_poolname_id
bool rc
float poisson
H3D_ID * layername_ids
unsigned int layer_count
H3D_ID dt_id
H3D_TENSOR_TYPE tensor_type
bool Hyper3DDatatypePools(H3DFileInfo *h3d_file, H3D_ID dt_id, H3D_ID poolname_id, unsigned int num_layers, H3D_ID *layername_ids, bool corners, H3D_TENSOR_TYPE tensor_type, float poisson)
Definition h3d_dl.c:1331
bool Hyper3DDatatypeEnd(H3DFileInfo *h3d_file)
Definition h3d_dl.c:1341
bool Hyper3DExportClearError(H3DFileInfo *h3d_file)
Definition h3d_dl.c:939
bool Hyper3DDatatypeWrite(H3DFileInfo *h3d_file, const char *label, H3D_ID dt_id, H3D_DS_FORMAT format, H3D_DS_TYPE type, unsigned int num_pools)
Definition h3d_dl.c:1316
bool Hyper3DDatatypeBegin(H3DFileInfo *h3d_file, unsigned int count)
Definition h3d_dl.c:1310

◆ c_h3d_create_displacement_datatype__()

void c_h3d_create_displacement_datatype__ ( )