Skip to content

Commit

Permalink
smokeview source: remove pp_INTERNAL_MESH directive
Browse files Browse the repository at this point in the history
  • Loading branch information
gforney committed Oct 29, 2024
1 parent 88a8c0f commit ae51048
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 49 deletions.
48 changes: 0 additions & 48 deletions Source/smokeview/IOboundary.c
Original file line number Diff line number Diff line change
Expand Up @@ -1620,66 +1620,18 @@ FILE_SIZE ReadBoundaryBndf(int ifile, int load_flag, int *errorcode){

// determine if a patch is on an external wall
if(i1 == i2){
#ifdef pp_INTERNAL_MESH
float xyz[3];

if(i1==0){
xyz[0] = xplt[0] - 0.01;
xyz[1] = (yplt[pfi->ib[2]] + yplt[pfi->ib[3]])/2.0;
xyz[2] = (zplt[pfi->ib[4]] + zplt[pfi->ib[5]])/2.0;
if(InExterior(xyz) == 0)pfi->internal_mesh_face = 1;
}
else if(i1 == meshi->ibar){
xyz[0] = xplt[meshi->ibar-1] + 0.01;
xyz[1] = (yplt[pfi->ib[2]] + yplt[pfi->ib[3]])/2.0;
xyz[2] = (zplt[pfi->ib[4]] + zplt[pfi->ib[5]])/2.0;
if(InExterior(xyz) == 0)pfi->internal_mesh_face = 1;
}
#endif
if(j1 == 0 && j2 == meshi->jbar && k1 == 0 && k2 == meshi->kbar){
if(i1 == 0)patchi->meshfaceinfo[0] = pfi;
if(i1 == meshi->ibar)patchi->meshfaceinfo[1] = pfi;
}
}
else if(j1 == j2){
#ifdef pp_INTERNAL_MESH
float xyz[3];

if(j1==0){
xyz[0] = (xplt[pfi->ib[0]] + xplt[pfi->ib[1]])/2.0;
xyz[1] = yplt[0] - 0.01;
xyz[2] = (zplt[pfi->ib[4]] + zplt[pfi->ib[5]])/2.0;
if(InExterior(xyz) == 0)pfi->internal_mesh_face = 1;
}
else if(j1 == meshi->jbar){
xyz[0] = (xplt[pfi->ib[0]] + xplt[pfi->ib[1]])/2.0;
xyz[1] = yplt[meshi->jbar-1] + 0.01;
xyz[2] = (zplt[pfi->ib[4]] + zplt[pfi->ib[5]])/2.0;
if(InExterior(xyz) == 0)pfi->internal_mesh_face = 1;
}
#endif
if(i1 == 0 && i2 == meshi->ibar && k1 == 0 && k2 == meshi->kbar){
if(j1 == 0)patchi->meshfaceinfo[2] = pfi;
if(j1 == meshi->jbar)patchi->meshfaceinfo[3] = pfi;
}
}
else{
#ifdef pp_INTERNAL_MESH
float xyz[3];

if(k1==0){
xyz[0] = (xplt[pfi->ib[0]] + xplt[pfi->ib[1]])/2.0;
xyz[1] = (yplt[pfi->ib[2]] + yplt[pfi->ib[3]]) / 2.0;
xyz[2] = zplt[0] - 0.01;
if(InExterior(xyz) == 0)pfi->internal_mesh_face = 1;
}
else if(k1 == meshi->kbar){
xyz[0] = (xplt[pfi->ib[0]] + xplt[pfi->ib[1]]) / 2.0;
xyz[1] = (yplt[pfi->ib[2]] + yplt[pfi->ib[3]]) / 2.0;
xyz[2] = zplt[meshi->kbar-1] + 0.01;
if(InExterior(xyz) == 0)pfi->internal_mesh_face = 1;
}
#endif
if(i1 == 0 && i2 == meshi->ibar && j1 == 0 && j2 == meshi->jbar){
if(k1 == 0)patchi->meshfaceinfo[4] = pfi;
if(k1 == meshi->kbar)patchi->meshfaceinfo[5] = pfi;
Expand Down
1 change: 0 additions & 1 deletion Source/smokeview/options.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
//#define pp_FDS // create a 1 mesh input file
//#define pp_GEOM_EXP // experimental geometry settings (smooth normals, lighting)
//#define pp_HIDDEN_FACES // use UpdateHiddenFaces routine
//#define pp_INTERNAL_MESH // use internal_mesh_face variable (with boundary files)

#ifdef pp_FRAME // turn on each frame type if pp_FRAME is set
#define pp_BOUNDFRAME // turn on frame code for boundary files
Expand Down

0 comments on commit ae51048

Please sign in to comment.