Branch data Line data Source code
1 : : /* *****************************************************************
2 : : MESQUITE -- The Mesh Quality Improvement Toolkit
3 : :
4 : : Copyright 2009 Sandia National Laboratories. Developed at the
5 : : University of Wisconsin--Madison under SNL contract number
6 : : 624796. The U.S. Government and the University of Wisconsin
7 : : retain certain rights to this software.
8 : :
9 : : This library is free software; you can redistribute it and/or
10 : : modify it under the terms of the GNU Lesser General Public
11 : : License as published by the Free Software Foundation; either
12 : : version 2.1 of the License, or (at your option) any later version.
13 : :
14 : : This library is distributed in the hope that it will be useful,
15 : : but WITHOUT ANY WARRANTY; without even the implied warranty of
16 : : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 : : Lesser General Public License for more details.
18 : :
19 : : You should have received a copy of the GNU Lesser General Public License
20 : : (lgpl.txt) along with this library; if not, write to the Free Software
21 : : Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 : :
23 : : (2009) [email protected]
24 : :
25 : : ***************************************************************** */
26 : :
27 : : /** \file ViscousCFDTetShapeWrapper.hpp
28 : : * \brief
29 : : * \author Jason Kraftcheck
30 : : */
31 : :
32 : : #ifndef MSQ_VISCOUS_CFD_TET_SHAPE_WRAPPER_HPP
33 : : #define MSQ_VISCOUS_CFD_TET_SHAPE_WRAPPER_HPP
34 : :
35 : : #include "Mesquite.hpp"
36 : : #include "Wrapper.hpp"
37 : :
38 : : namespace MBMesquite
39 : : {
40 : :
41 : : class MeshDomainAssoc;
42 : :
43 [ - + ]: 2 : class MESQUITE_EXPORT ViscousCFDTetShapeWrapper : public Wrapper
44 : : {
45 : : private:
46 : : double dCutoff, aVal;
47 : : int iterationLimit;
48 : : int parallelIterations;
49 : : double maxVtxMovement;
50 : :
51 : : void run_wrapper( MeshDomainAssoc* mesh_and_domain, ParallelMesh* pmesh, Settings* settings, QualityAssessor* qa,
52 : : MsqError& err );
53 : :
54 : : public:
55 : : /**
56 : : *\param max_vertex_movement Termination optimization if no vertex is moved
57 : : * by more than this distance in the previous solver
58 : : * step.
59 : : *\param a Coefficient for target metric weight
60 : : *\param d_prime Dihedral handle cut-off for target metric weight
61 : : *\param max_iterations Termination optimizaiton after this many solver
62 : : * steps.
63 : : */
64 : 1 : ViscousCFDTetShapeWrapper( double max_vertex_movement, double a = 0.4395, double d_prime = 135,
65 : : int max_iterations = 50, int parallel_iterations = 10 )
66 : : : dCutoff( d_prime ), aVal( a ), iterationLimit( max_iterations ), parallelIterations( parallel_iterations ),
67 : 1 : maxVtxMovement( max_vertex_movement )
68 : : {
69 : 1 : }
70 : : };
71 : :
72 : : } // namespace MBMesquite
73 : :
74 : : #endif
|