OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
c_h3d_update_rwalls.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_rwalls_ (int *NOM_OPT, int *LNOPT1, int *I16D, int *NPRW, int *NRWALL, int *MAX_NOD_ID, my_real *XWL, my_real *YWL, my_real *ZWL, my_real *V1, my_real *V2, my_real *V3, my_real *VV1, my_real *VV2, my_real *VV3)
void _FCALL C_H3D_UPDATE_RWALLS (int *NOM_OPT, int *LNOPT1, int *I16D, int *NPRW, int *NRWALL, int *MAX_NOD_ID, my_real *XWL, my_real *YWL, my_real *ZWL, my_real *V1, my_real *V2, my_real *V3, my_real *VV1, my_real *VV2, my_real *VV3)
void c_h3d_update_rwalls__ (int *NOM_OPT, int *LNOPT1, int *I16D, int *NPRW, int *NRWALL, int *MAX_NOD_ID, my_real *XWL, my_real *YWL, my_real *ZWL, my_real *V1, my_real *V2, my_real *V3, my_real *VV1, my_real *VV2, my_real *VV3)
void c_h3d_update_rwalls (int *NOM_OPT, int *LNOPT1, int *I16D, int *NPRW, int *NRWALL, int *MAX_NOD_ID, my_real *XWL, my_real *YWL, my_real *ZWL, my_real *V1, my_real *V2, my_real *V3, my_real *VV1, my_real *VV2, my_real *VV3)

Macro Definition Documentation

◆ _FCALL [1/2]

#define _FCALL

Definition at line 50 of file c_h3d_update_rwalls.cpp.

◆ _FCALL [2/2]

#define _FCALL

Definition at line 50 of file c_h3d_update_rwalls.cpp.

Function Documentation

◆ C_H3D_UPDATE_RWALLS()

void _FCALL C_H3D_UPDATE_RWALLS ( int * NOM_OPT,
int * LNOPT1,
int * I16D,
int * NPRW,
int * NRWALL,
int * MAX_NOD_ID,
my_real * XWL,
my_real * YWL,
my_real * ZWL,
my_real * V1,
my_real * V2,
my_real * V3,
my_real * VV1,
my_real * VV2,
my_real * VV3 )

Definition at line 149 of file c_h3d_update_rwalls.cpp.

152{c_h3d_update_rwalls_ (NOM_OPT, LNOPT1, I16D, NPRW, NRWALL, MAX_NOD_ID,
153 XWL, YWL, ZWL, V1, V2, V3, VV1, VV2 , VV3 );}
void c_h3d_update_rwalls_(int *NOM_OPT, int *LNOPT1, int *I16D, int *NPRW, int *NRWALL, int *MAX_NOD_ID, my_real *XWL, my_real *YWL, my_real *ZWL, my_real *V1, my_real *V2, my_real *V3, my_real *VV1, my_real *VV2, my_real *VV3)

◆ c_h3d_update_rwalls()

void c_h3d_update_rwalls ( int * NOM_OPT,
int * LNOPT1,
int * I16D,
int * NPRW,
int * NRWALL,
int * MAX_NOD_ID,
my_real * XWL,
my_real * YWL,
my_real * ZWL,
my_real * V1,
my_real * V2,
my_real * V3,
my_real * VV1,
my_real * VV2,
my_real * VV3 )

Definition at line 161 of file c_h3d_update_rwalls.cpp.

164{c_h3d_update_rwalls_ (NOM_OPT, LNOPT1, I16D, NPRW, NRWALL, MAX_NOD_ID,
165 XWL, YWL, ZWL, V1, V2, V3, VV1, VV2 , VV3 );}

◆ c_h3d_update_rwalls_()

void c_h3d_update_rwalls_ ( int * NOM_OPT,
int * LNOPT1,
int * I16D,
int * NPRW,
int * NRWALL,
int * MAX_NOD_ID,
my_real * XWL,
my_real * YWL,
my_real * ZWL,
my_real * V1,
my_real * V2,
my_real * V3,
my_real * VV1,
my_real * VV2,
my_real * VV3 )

Definition at line 77 of file c_h3d_update_rwalls.cpp.

80{
81
82 try {
83
84
85 float node[3];
86 H3D_ID node_id;
87
88 // update Elements
89 H3D_ID elem_id ;
90 H3D_ID RigidElem ;
91 int i,j,nsn,nbelemwrite;
92
93 unsigned int elem_count = 1;
94
95 for(i=0;i<*NRWALL;i++)
96 {
97 elem_id = NOM_OPT[*I16D + i * *LNOPT1 - 1];
98 RigidElem = NOM_OPT[*I16D + i * *LNOPT1 - 1];
99
101 if( !rc ) throw rc;
102
103 node[0] = XWL[i] + V1[i];
104 node[1] = YWL[i] + V2[i];
105 node[2] = ZWL[i] + V3[i];
106 node_id = *MAX_NOD_ID+ (4 * i) + 1 ;
107
108 rc = Hyper3DPositionWrite(h3d_file, node_id, node, H3D_NULL_ID, H3D_NULL_ID);
109 if( !rc ) throw rc;
110
111 node[0] = XWL[i] + VV1[i];
112 node[1] = YWL[i] + VV2[i];
113 node[2] = ZWL[i] + VV3[i];
114 node_id = *MAX_NOD_ID+ (4 * i) + 2 ;
115
116 rc = Hyper3DPositionWrite(h3d_file, node_id, node, H3D_NULL_ID, H3D_NULL_ID);
117 if( !rc ) throw rc;
118
119 node[0] = XWL[i] - V1[i];
120 node[1] = YWL[i] - V2[i];
121 node[2] = ZWL[i] - V3[i];
122 node_id = *MAX_NOD_ID+ (4 * i) + 3 ;
123
124 rc = Hyper3DPositionWrite(h3d_file, node_id, node, H3D_NULL_ID, H3D_NULL_ID);
125 if( !rc ) throw rc;
126
127 node[0] = XWL[i] - VV1[i];
128 node[1] = YWL[i] - VV2[i];
129 node[2] = ZWL[i] - VV3[i];
130 node_id = *MAX_NOD_ID+ (4 * i) + 4 ;
131
132 rc = Hyper3DPositionWrite(h3d_file, node_id, node, H3D_NULL_ID, H3D_NULL_ID);
133 if( !rc ) throw rc;
134
136 if( !rc ) throw rc;
137
138 }
139
140
141 } // end of try
142
143 catch(...) {
145 }
146
147}
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_update_rwalls__()

void c_h3d_update_rwalls__ ( int * NOM_OPT,
int * LNOPT1,
int * I16D,
int * NPRW,
int * NRWALL,
int * MAX_NOD_ID,
my_real * XWL,
my_real * YWL,
my_real * ZWL,
my_real * V1,
my_real * V2,
my_real * V3,
my_real * VV1,
my_real * VV2,
my_real * VV3 )

Definition at line 155 of file c_h3d_update_rwalls.cpp.

158{c_h3d_update_rwalls_ (NOM_OPT, LNOPT1, I16D, NPRW, NRWALL, MAX_NOD_ID,
159 XWL, YWL, ZWL, V1, V2, V3, VV1, VV2 , VV3 );}