OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
c_h3d_create_beams.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_beams_ (int *ITAB, int *NUMNOD, int *IXP, int *NIXP, int *NUMELP, int *IPARTP, int *IPART, int *LIPART1, int *H3D_PART)
void _FCALL C_H3D_CREATE_BEAMS (int *ITAB, int *NUMNOD, int *IXP, int *NIXP, int *NUMELP, int *IPARTP, int *IPART, int *LIPART1, int *H3D_PART)
void c_h3d_create_beams__ (int *ITAB, int *NUMNOD, int *IXP, int *NIXP, int *NUMELP, int *IPARTP, int *IPART, int *LIPART1, int *H3D_PART)
void c_h3d_create_beams (int *ITAB, int *NUMNOD, int *IXP, int *NIXP, int *NUMELP, int *IPARTP, int *IPART, int *LIPART1, int *H3D_PART)

Macro Definition Documentation

◆ _FCALL [1/2]

#define _FCALL

Definition at line 49 of file c_h3d_create_beams.cpp.

◆ _FCALL [2/2]

#define _FCALL

Definition at line 49 of file c_h3d_create_beams.cpp.

Function Documentation

◆ C_H3D_CREATE_BEAMS()

void _FCALL C_H3D_CREATE_BEAMS ( int * ITAB,
int * NUMNOD,
int * IXP,
int * NIXP,
int * NUMELP,
int * IPARTP,
int * IPART,
int * LIPART1,
int * H3D_PART )

Definition at line 117 of file c_h3d_create_beams.cpp.

118{c_h3d_create_beams_ (ITAB,NUMNOD,IXP,NIXP,NUMELP,IPARTP,IPART,LIPART1,H3D_PART);}
void c_h3d_create_beams_(int *ITAB, int *NUMNOD, int *IXP, int *NIXP, int *NUMELP, int *IPARTP, int *IPART, int *LIPART1, int *H3D_PART)

◆ c_h3d_create_beams()

void c_h3d_create_beams ( int * ITAB,
int * NUMNOD,
int * IXP,
int * NIXP,
int * NUMELP,
int * IPARTP,
int * IPART,
int * LIPART1,
int * H3D_PART )

Definition at line 123 of file c_h3d_create_beams.cpp.

124{c_h3d_create_beams_ (ITAB,NUMNOD,IXP,NIXP,NUMELP,IPARTP,IPART,LIPART1,H3D_PART);}

◆ c_h3d_create_beams_()

void c_h3d_create_beams_ ( int * ITAB,
int * NUMNOD,
int * IXP,
int * NIXP,
int * NUMELP,
int * IPARTP,
int * IPART,
int * LIPART1,
int * H3D_PART )

Definition at line 70 of file c_h3d_create_beams.cpp.

71{
72 try {
73
74 // create Elements
75 unsigned int conn[2] ;
76 H3D_ID elem_id ;
77 int i;
78
79 unsigned int elem_count = 1;
80
81
82 char BEAMPOOL[] = "BEAM";
84 if( !rc ) throw rc;
85
86
87
88 for(i=0;i<*NUMELP;i++)
89 {
90 if(H3D_PART[IPARTP[i] - 1] == 1)
91 {
92 elem_id = IXP[*NIXP * i + *NIXP-1];
93 conn[0] = IXP[*NIXP * i + 1];
94 conn[1] = IXP[*NIXP * i + 2];
95 comp_id = IPART[*LIPART1 * (IPARTP[i] - 1) + 3];
96
98 H3D_ELEM_CONFIG_ROD, comp_id,
100 if( !rc ) throw rc;
101 rc = Hyper3DElementWrite(h3d_file, elem_id, conn);
102 if( !rc ) throw rc;
104 if( !rc ) throw rc;
105 }
106 }
107
108
109 } // end of try
110
111 catch(...) {
113 }
114
115}
H3D_ID onedelem_poolname_id
H3DFileInfo * h3d_file
H3D_ID node_poolname_id
bool rc
H3D_ID beam_poolname_id
H3D_ID comp_id
bool Hyper3DAddString(H3DFileInfo *h3d_file, const char *const string, H3D_ID *const str_id)
Definition h3d_dl.c:955
bool Hyper3DExportClearError(H3DFileInfo *h3d_file)
Definition h3d_dl.c:939
bool Hyper3DElementWrite(H3DFileInfo *h3d_file, H3D_ID id, H3D_ID *connectivity)
Definition h3d_dl.c:1147
bool Hyper3DElementEnd(H3DFileInfo *h3d_file)
Definition h3d_dl.c:1154
bool Hyper3DElementBegin(H3DFileInfo *h3d_file, unsigned int count, H3D_ID poolname_id, H3D_ElementConfig config, H3D_ID parent_id, H3D_ID parent_poolname_id, H3D_ID node_poolname_id)
Definition h3d_dl.c:1137

◆ c_h3d_create_beams__()

void c_h3d_create_beams__ ( int * ITAB,
int * NUMNOD,
int * IXP,
int * NIXP,
int * NUMELP,
int * IPARTP,
int * IPART,
int * LIPART1,
int * H3D_PART )

Definition at line 120 of file c_h3d_create_beams.cpp.

121{c_h3d_create_beams_ (ITAB,NUMNOD,IXP,NIXP,NUMELP,IPARTP,IPART,LIPART1,H3D_PART);}