22// Created by calderans on 29/06/23.
33//
44
5- #ifndef GMDS_CGNSWRITER3D_H
6- #define GMDS_CGNSWRITER3D_H
5+ #ifndef GMDS_CGNSWRITERND_H
6+ #define GMDS_CGNSWRITERND_H
77/* ----------------------------------------------------------------------------*/
88#include < sstream>
99/* ----------------------------------------------------------------------------*/
@@ -17,29 +17,26 @@ namespace gmds {
1717
1818namespace aero {
1919
20- class GMDSAero_API CGNSWriter3D
20+ class GMDSAero_API CGNSWriterND
2121{
2222 public:
2323 /* * @brief Constructor
2424 *
2525 * @param AMeshService an implementation of an io service to write data
2626 * into a mesh
2727 */
28- CGNSWriter3D (Blocking3D *ABlocking);
28+ CGNSWriterND (Blocking3D *ABlocking, int ADim );
2929
30- CGNSWriter3D (Mesh *AMesh);
30+ CGNSWriterND (Mesh *AMesh, int ADim );
3131
32- CGNSWriter3D ();
32+ CGNSWriterND ();
3333
3434 /* ------------------------------------------------------------------------*/
3535 /* * \brief Destructor. */
36- virtual ~CGNSWriter3D ();
36+ virtual ~CGNSWriterND ();
3737
3838 void write (const std::string &AInFileName, const std::string &AOutFileName, const std::string &AWorkingDir);
3939
40- void writeBoundaryCondition (int &id_bc, cgsize_t *pts, int id_zone, char ABCtype[32 ], int AEdgeID) const ;
41-
42-
4340 protected:
4441 void initialize (const std::string &AOutFileName, const std::string &dir);
4542
@@ -51,7 +48,11 @@ class GMDSAero_API CGNSWriter3D
5148
5249 void _getIndicesIdAndVal (const int *ipnts1, const int *ipnts2, bool *filtre, int &ind, int &val);
5350
51+ void writeConnections3D (const Region& Ablock, int iFace, int & index_tf, const std::vector<Variable<int >*>& zone_vars);
52+ void writeConnections2D (const Face& Ablock, int iEdge, int & index_tf, const std::vector<Variable<int >*>& zone_vars);
5453
54+ void writeBoundaryCondition3D (int &num_bc, const Region& Ablock, int iFace, const std::vector<Variable<int >*>& bc_vars) const ;
55+ void writeBoundaryCondition2D (int &num_bc, const Face& Ablock, int iEdge, const std::vector<Variable<int >*>& bc_vars) const ;
5556
5657 protected:
5758 Mesh *m_blocks;
@@ -62,8 +63,6 @@ class GMDSAero_API CGNSWriter3D
6263 Variable<int >* VarDiscrJ;
6364 Variable<int >* VarDiscrK;
6465
65- Variable<int >* axis;
66-
6766 int m_cellDim;
6867 int m_physdim;
6968
@@ -78,4 +77,4 @@ class GMDSAero_API CGNSWriter3D
7877/* ----------------------------------------------------------------------------*/
7978}// namespace gmds
8079/* ----------------------------------------------------------------------------*/
81- #endif // GMDS_CGNSWRITER3D_H
80+ #endif // GMDS_CGNSWRITERND_H
0 commit comments