mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-18 08:50:33 +05:00
0020832: EDF 1359 SMESH : Automatic meshing of boundary layers
+ StdMeshers_ViscousLayers.hxx
This commit is contained in:
parent
44d84c2bb8
commit
e201ae8a2a
@ -75,7 +75,8 @@ salomeinclude_HEADERS = \
|
||||
StdMeshers_HexaFromSkin_3D.hxx \
|
||||
StdMeshers_ImportSource.hxx \
|
||||
StdMeshers_Import_1D.hxx \
|
||||
StdMeshers_Import_1D2D.hxx
|
||||
StdMeshers_Import_1D2D.hxx \
|
||||
StdMeshers_ViscousLayers.hxx
|
||||
|
||||
# Libraries targets
|
||||
|
||||
@ -129,7 +130,8 @@ dist_libStdMeshers_la_SOURCES = \
|
||||
StdMeshers_HexaFromSkin_3D.cxx \
|
||||
StdMeshers_ImportSource.cxx \
|
||||
StdMeshers_Import_1D.cxx \
|
||||
StdMeshers_Import_1D2D.cxx
|
||||
StdMeshers_Import_1D2D.cxx \
|
||||
StdMeshers_ViscousLayers.cxx
|
||||
|
||||
|
||||
# additionnal information to compil and link file
|
||||
|
3859
src/StdMeshers/StdMeshers_ViscousLayers.cxx
Normal file
3859
src/StdMeshers/StdMeshers_ViscousLayers.cxx
Normal file
File diff suppressed because it is too large
Load Diff
94
src/StdMeshers/StdMeshers_ViscousLayers.hxx
Normal file
94
src/StdMeshers/StdMeshers_ViscousLayers.hxx
Normal file
@ -0,0 +1,94 @@
|
||||
// Copyright (C) 2007-2011 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_ViscousLayers.hxx
|
||||
// Created : Wed Dec 1 15:15:34 2010
|
||||
// Author : Edward AGAPOV (eap)
|
||||
|
||||
#ifndef __StdMeshers_ViscousLayers_HXX__
|
||||
#define __StdMeshers_ViscousLayers_HXX__
|
||||
|
||||
#include "SMESH_StdMeshers.hxx"
|
||||
|
||||
#include "SMESH_Hypothesis.hxx"
|
||||
#include "SMESH_ProxyMesh.hxx"
|
||||
|
||||
#include <vector>
|
||||
|
||||
/*!
|
||||
* \brief Hypothesis defining parameters of viscous layers
|
||||
*/
|
||||
class STDMESHERS_EXPORT StdMeshers_ViscousLayers : public SMESH_Hypothesis
|
||||
{
|
||||
public:
|
||||
StdMeshers_ViscousLayers(int hypId, int studyId, SMESH_Gen* gen);
|
||||
|
||||
// Set faces to exclude from treatment
|
||||
void SetIgnoreFaces(const std::vector<int>& faceIds);
|
||||
std::vector<int> GetIgnoreFaces() const { return _ignoreFaceIds; }
|
||||
|
||||
// Set total thickness of layers of prisms
|
||||
void SetTotalThickness(double thickness);
|
||||
double GetTotalThickness() const { return _thickness; }
|
||||
|
||||
// Set number of layers of prisms
|
||||
void SetNumberLayers(int nb);
|
||||
int GetNumberLayers() const { return _nbLayers; }
|
||||
|
||||
// Set factor (>1.0) of growth of layer thickness towards inside of mesh
|
||||
void SetStretchFactor(double factor);
|
||||
double GetStretchFactor() const { return _stretchFactor; }
|
||||
|
||||
// Computes temporary 2D mesh to be used by 3D algorithm.
|
||||
// Return SMESH_ProxyMesh for each SOLID in theShape
|
||||
SMESH_ProxyMesh::Ptr Compute(SMESH_Mesh& theMesh,
|
||||
const TopoDS_Shape& theShape,
|
||||
const bool toMakeN2NMap=false) const;
|
||||
|
||||
virtual std::ostream & SaveTo(std::ostream & save);
|
||||
virtual std::istream & LoadFrom(std::istream & load);
|
||||
|
||||
/*!
|
||||
* \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 "ViscousLayers"; }
|
||||
|
||||
private:
|
||||
|
||||
std::vector<int> _ignoreFaceIds;
|
||||
int _nbLayers;
|
||||
double _thickness;
|
||||
double _stretchFactor;
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user