Salome HOME
788c4fa212c412060b5956b2dea432451038b431
[modules/homard.git] / src / HOMARD / HomardDriver.hxx
1 //  HOMARD HOMARD : implementation of HOMARD idl descriptions
2 //
3 // Copyright (C) 2011-2020  CEA/DEN, EDF R&D
4 //
5 // This library is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU Lesser General Public
7 // License as published by the Free Software Foundation; either
8 // version 2.1 of the License, or (at your option) any later version.
9 //
10 // This library is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 // Lesser General Public License for more details.
14 //
15 // You should have received a copy of the GNU Lesser General Public
16 // License along with this library; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
18 //
19 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 //
21
22 # ifndef _HOMARDDRIVER_HXX_
23 # define _HOMARDDRIVER_HXX_
24
25 #include "HOMARD.hxx"
26
27 #include <iostream>
28 #include <fstream>
29
30 class HOMARDIMPL_EXPORT HomardDriver
31 {
32 public:
33   HomardDriver(const std::string siter, const std::string siterp1);
34   ~HomardDriver();
35   //
36   void        TexteInit( const std::string DirCompute, const std::string LogFile, const std::string Langue );
37   void        TexteInfo( int TypeBila, int NumeIter );
38   void        TexteMajCoords( int NumeIter );
39   void        CreeFichierDonn();
40   void        TexteAdap( int ExtType );
41   void        CreeFichier();
42   void        TexteMaillage( const std::string NomMesh, const std::string MeshFile, int apres );
43   void        TexteMaillageHOMARD( const std::string Dir, const std::string liter, int apres );
44   void        TexteConfRaffDera( int ConfType, int TypeAdap, int TypeRaff, int TypeDera );
45   void        TexteZone( int NumeZone, int ZoneType, int TypeUse, double x0, double x1, double x2, double x3, double x4, double x5, double x6, double x7, double x8 );
46   void        TexteGroup( const std::string GroupName );
47   void        TexteField( const std::string FieldName, const std::string FieldFile,
48                           int TimeStep, int Rank,
49                           int TypeThR, double ThreshR, int TypeThC, double ThreshC,
50                           int UsField, int UsCmpI );
51   void        TexteCompo( int NumeComp, const std::string NomCompo);
52
53   void        TexteBoundaryOption( int BoundaryOption );
54   void        TexteBoundaryCAOGr( const std::string GroupName );
55   void        TexteBoundaryDi( const std::string MeshName, const std::string MeshFile );
56   void        TexteBoundaryDiGr( const std::string GroupName );
57   void        TexteBoundaryAn( const std::string NameBoundary, int NumeBoundary, int BoundaryType, double x0, double x1, double x2, double x3, double x4, double x5, double x6, double x7 );
58   void        TexteBoundaryAnGr( const std::string NameBoundary, int NumeBoundary, const std::string GroupName );
59
60   void        TexteFieldInterp( const std::string FieldFile, const std::string MeshFile );
61   void        TexteFieldInterpAll();
62   void        TexteFieldInterpNameType( int NumeChamp, const std::string FieldName, const std::string TypeInterp, int TimeStep, int Rank );
63   void        TexteAdvanced( int Pyram, int NivMax, double DiamMin, int AdapInit, int LevelOutput );
64   void        TexteInfoCompute( int MessInfo );
65   //
66   int         ExecuteHomard(int option);
67   //
68
69 public:
70   int         _modeHOMARD;
71   std::string _HOMARD_Exec;
72   std::string _NomDir;
73   std::string _NomFichierConfBase;
74   std::string _NomFichierConf;
75   std::string _NomFichierDonn;
76   std::string _siter;
77   std::string _siterp1;
78   std::string _Texte;
79   int         _TimeStep;
80   int         _Rank;
81   bool _bLu;
82
83 };
84
85 # endif         /* # ifndef _HOMARDDRIVER_HXX_ */