1 // Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // File : StdMeshers_ViscousLayers2D.hxx
21 // Created : 23 Jul 2012
22 // Author : Edward AGAPOV (eap)
24 #ifndef __StdMeshers_ViscousLayers2D_HXX__
25 #define __StdMeshers_ViscousLayers2D_HXX__
27 #include "StdMeshers_ViscousLayers.hxx"
32 * \brief Hypothesis defining parameters of viscous layers
34 class STDMESHERS_EXPORT StdMeshers_ViscousLayers2D : public StdMeshers_ViscousLayers
37 StdMeshers_ViscousLayers2D(int hypId, int studyId, SMESH_Gen* gen);
39 // Computes temporary 2D mesh to be used by 2D algorithm.
40 // Return SMESH_ProxyMesh for the given FACE, or NULL in case of error
41 static SMESH_ProxyMesh::Ptr Compute(SMESH_Mesh& theMesh,
42 const TopoDS_Face& theShape);
44 * \brief At study restoration, restore event listeners used to clear an inferior
45 * dim sub-mesh modified by viscous layers
47 void RestoreListeners() const;
50 * \brief Initialize my parameter values by the mesh built on the geometry
51 * \param theMesh - the built mesh
52 * \param theShape - the geometry of interest
53 * \retval bool - true if parameter values have been successfully defined
55 * Just return false as this hypothesis does not have parameters values
57 virtual bool SetParametersByMesh(const SMESH_Mesh* theMesh, const TopoDS_Shape& theShape);
60 * \brief Initialize my parameter values by default parameters.
61 * \retval bool - true if parameter values have been successfully defined
63 virtual bool SetParametersByDefaults(const TDefaults& dflts, const SMESH_Mesh* theMesh=0)
66 static const char* GetHypType() { return "ViscousLayers2D"; }