OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
c_h3d_create_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_create_nodes_ (int *ITAB, int *NUMNOD, my_real *X, int *TAGNOD, my_real *D)
void _FCALL C_H3D_CREATE_NODES (int *ITAB, int *NUMNOD, my_real *X, int *TAGNOD, my_real *D)
void c_h3d_create_nodes__ (int *ITAB, int *NUMNOD, my_real *X, int *TAGNOD, my_real *D)
void c_h3d_create_nodes (int *ITAB, int *NUMNOD, my_real *X, int *TAGNOD, my_real *D)

Macro Definition Documentation

◆ _FCALL [1/2]

#define _FCALL

Definition at line 50 of file c_h3d_create_nodes.cpp.

◆ _FCALL [2/2]

#define _FCALL

Definition at line 50 of file c_h3d_create_nodes.cpp.

Function Documentation

◆ C_H3D_CREATE_NODES()

void _FCALL C_H3D_CREATE_NODES ( int * ITAB,
int * NUMNOD,
my_real * X,
int * TAGNOD,
my_real * D )

Definition at line 119 of file c_h3d_create_nodes.cpp.

120{c_h3d_create_nodes_ (ITAB,NUMNOD,X,TAGNOD,D);}
void c_h3d_create_nodes_(int *ITAB, int *NUMNOD, my_real *X, int *TAGNOD, my_real *D)

◆ c_h3d_create_nodes()

void c_h3d_create_nodes ( int * ITAB,
int * NUMNOD,
my_real * X,
int * TAGNOD,
my_real * D )

Definition at line 125 of file c_h3d_create_nodes.cpp.

126{c_h3d_create_nodes_ (ITAB,NUMNOD,X,TAGNOD,D);}

◆ c_h3d_create_nodes_()

void c_h3d_create_nodes_ ( int * ITAB,
int * NUMNOD,
my_real * X,
int * TAGNOD,
my_real * D )

Definition at line 77 of file c_h3d_create_nodes.cpp.

78{
79 try {
80
81 float node[3];
82 int i;
83 H3D_ID node_id;
84//
85
86
87
88 if( *NUMNOD != 0 )
89 {
91 if( !rc ) throw rc;
92
93 for(i=0;i<*NUMNOD;i++)
94 {
95 if( TAGNOD[i] == 1 )
96 {
97 node[0] = X[3*i ] - D[3*i ];
98 node[1] = X[3*i + 1] - D[3*i + 1];
99 node[2] = X[3*i + 2] - D[3*i + 2];
100 node_id = ITAB[i];
101
102 if (node_id != 0) rc = Hyper3DPositionWrite(h3d_file, node_id, node, H3D_NULL_ID, H3D_NULL_ID);
103 if( !rc ) throw rc;
104 }
105 }
106
108 if( !rc ) throw rc;
109 }
110
111
112 } // end of try
113
114 catch(...) {
116 }
117}
H3DFileInfo * h3d_file
H3D_ID node_poolname_id
bool rc
bool Hyper3DPositionBegin(H3DFileInfo *h3d_file, unsigned int count, H3D_ID poolname_id)
Definition h3d_dl.c:1113
bool Hyper3DExportClearError(H3DFileInfo *h3d_file)
Definition h3d_dl.c:939
bool Hyper3DPositionEnd(H3DFileInfo *h3d_file)
Definition h3d_dl.c:1127
bool Hyper3DPositionWrite(H3DFileInfo *h3d_file, H3D_ID id, float *coords, H3D_ID refsys_id, H3D_ID analysis_id)
Definition h3d_dl.c:1120

◆ c_h3d_create_nodes__()

void c_h3d_create_nodes__ ( int * ITAB,
int * NUMNOD,
my_real * X,
int * TAGNOD,
my_real * D )

Definition at line 122 of file c_h3d_create_nodes.cpp.

123{c_h3d_create_nodes_ (ITAB,NUMNOD,X,TAGNOD,D);}