TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Joints.h
1/****************************************************************************
2* Copyright (c) 2024, CEA
3* All rights reserved.
4*
5* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
6* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8* 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
9*
10* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
11* IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
12* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
13*
14*****************************************************************************/
15
16#ifndef Joints_included
17#define Joints_included
18
19#include <TRUST_List.h>
20#include <Joint.h>
21
22/*! @brief Joints class — represents a list of Joint objects.
23 *
24 * @sa Joint
25 */
26template <typename _SIZE_>
27class Joints_32_64 : public LIST(Joint_32_64<_SIZE_>)
28{
29 Declare_instanciable_32_64(Joints_32_64);
30
31public :
32
33 using int_t = _SIZE_;
36
38 int_t nb_faces() const;
39 int_t nb_faces(Type_Face type) const;
40 int nb_joints() const { return this->size(); }
41 void comprimer();
42 Joint_t& joint_PE(int pe);
43};
44
45
46using Joints = Joints_32_64<int>;
47using Joints_64 = Joints_32_64<trustIdType>;
48
49
50#endif /* Joints_included */
class Domaine_32_64 A Domain is a mesh composed of a set of geometric elements of the same type.
Definition Domaine.h:62
The Joint class is a Frontiere that contains the joint faces and vertices with the neighboring domain...
Definition Joint.h:34
Joints class — represents a list of Joint objects.
Definition Joints.h:28
int_t nb_faces(Type_Face type) const
Returns the number of faces of the specified type contained in the joint list.
Definition Joints.cpp:61
int nb_joints() const
Definition Joints.h:40
void comprimer()
Compresses the joint list by merging joints sharing the same neighboring PE.
Definition Joints.cpp:75
Domaine_32_64< int > Domaine_t
Definition Joints.h:34
int_t nb_faces() const
Returns the total number of faces in all Joints_32_64 in the list.
Definition Joints.cpp:45
Joint_32_64< int > Joint_t
Definition Joints.h:35
void associer_domaine(const Domaine_t &)
Associates a domain with all joints in the list.
Definition Joints.cpp:33
Joint_t & joint_PE(int pe)
Returns a reference to the joint whose neighboring PE is the specified one.
Definition Joints.cpp:135