mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-18 16:10:37 +05:00
0021543: EDF 1978 SMESH: Viscous layer for 2D meshes
+ StdMeshers_ViscousLayers2D.cxx \
This commit is contained in:
parent
2c227fc6a5
commit
8b733351ad
@ -76,6 +76,7 @@ salomeinclude_HEADERS = \
|
|||||||
StdMeshers_Import_1D.hxx \
|
StdMeshers_Import_1D.hxx \
|
||||||
StdMeshers_Import_1D2D.hxx \
|
StdMeshers_Import_1D2D.hxx \
|
||||||
StdMeshers_ViscousLayers.hxx \
|
StdMeshers_ViscousLayers.hxx \
|
||||||
|
StdMeshers_ViscousLayers2D.hxx \
|
||||||
StdMeshers_Projection_1D2D.hxx \
|
StdMeshers_Projection_1D2D.hxx \
|
||||||
StdMeshers_CartesianParameters3D.hxx \
|
StdMeshers_CartesianParameters3D.hxx \
|
||||||
StdMeshers_Cartesian_3D.hxx
|
StdMeshers_Cartesian_3D.hxx
|
||||||
@ -133,6 +134,7 @@ dist_libStdMeshers_la_SOURCES = \
|
|||||||
StdMeshers_Import_1D.cxx \
|
StdMeshers_Import_1D.cxx \
|
||||||
StdMeshers_Import_1D2D.cxx \
|
StdMeshers_Import_1D2D.cxx \
|
||||||
StdMeshers_ViscousLayers.cxx \
|
StdMeshers_ViscousLayers.cxx \
|
||||||
|
StdMeshers_ViscousLayers2D.cxx \
|
||||||
StdMeshers_Projection_1D2D.cxx \
|
StdMeshers_Projection_1D2D.cxx \
|
||||||
StdMeshers_CartesianParameters3D.cxx \
|
StdMeshers_CartesianParameters3D.cxx \
|
||||||
StdMeshers_Cartesian_3D.cxx
|
StdMeshers_Cartesian_3D.cxx
|
||||||
|
1730
src/StdMeshers/StdMeshers_ViscousLayers2D.cxx
Normal file
1730
src/StdMeshers/StdMeshers_ViscousLayers2D.cxx
Normal file
File diff suppressed because it is too large
Load Diff
71
src/StdMeshers/StdMeshers_ViscousLayers2D.hxx
Normal file
71
src/StdMeshers/StdMeshers_ViscousLayers2D.hxx
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Lesser General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2.1 of the License.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Lesser General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Lesser General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
//
|
||||||
|
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
||||||
|
//
|
||||||
|
|
||||||
|
// File : StdMeshers_ViscousLayers2D.hxx
|
||||||
|
// Created : 23 Jul 2012
|
||||||
|
// Author : Edward AGAPOV (eap)
|
||||||
|
|
||||||
|
#ifndef __StdMeshers_ViscousLayers2D_HXX__
|
||||||
|
#define __StdMeshers_ViscousLayers2D_HXX__
|
||||||
|
|
||||||
|
#include "StdMeshers_ViscousLayers.hxx"
|
||||||
|
|
||||||
|
class TopoDS_Face;
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* \brief Hypothesis defining parameters of viscous layers
|
||||||
|
*/
|
||||||
|
class STDMESHERS_EXPORT StdMeshers_ViscousLayers2D : public StdMeshers_ViscousLayers
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
StdMeshers_ViscousLayers2D(int hypId, int studyId, SMESH_Gen* gen);
|
||||||
|
|
||||||
|
// Computes temporary 2D mesh to be used by 2D algorithm.
|
||||||
|
// Return SMESH_ProxyMesh for the given FACE, or NULL in case of error
|
||||||
|
static SMESH_ProxyMesh::Ptr Compute(SMESH_Mesh& theMesh,
|
||||||
|
const TopoDS_Face& theShape);
|
||||||
|
/*!
|
||||||
|
* \brief At study restoration, restore event listeners used to clear an inferior
|
||||||
|
* dim sub-mesh modified by viscous layers
|
||||||
|
*/
|
||||||
|
void RestoreListeners() const;
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* \brief Initialize my parameter values by the mesh built on the geometry
|
||||||
|
* \param theMesh - the built mesh
|
||||||
|
* \param theShape - the geometry of interest
|
||||||
|
* \retval bool - true if parameter values have been successfully defined
|
||||||
|
*
|
||||||
|
* Just return false as this hypothesis does not have parameters values
|
||||||
|
*/
|
||||||
|
virtual bool SetParametersByMesh(const SMESH_Mesh* theMesh, const TopoDS_Shape& theShape);
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* \brief Initialize my parameter values by default parameters.
|
||||||
|
* \retval bool - true if parameter values have been successfully defined
|
||||||
|
*/
|
||||||
|
virtual bool SetParametersByDefaults(const TDefaults& dflts, const SMESH_Mesh* theMesh=0)
|
||||||
|
{ return false; }
|
||||||
|
|
||||||
|
static const char* GetHypType() { return "ViscousLayers2D"; }
|
||||||
|
|
||||||
|
private:
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in New Issue
Block a user