TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
IJK_Bubble_tools.h
1/****************************************************************************
2* Copyright (c) 2023, 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 IJK_Bubble_tools_included
17#define IJK_Bubble_tools_included
18
19#include <IJK_Field.h>
20#include <IJK_Field_vector.h>
21#include <IJK_Interfaces.h>
22#include <Maillage_FT_IJK.h>
23#include <IJK_subres_constants.h>
24
25
26
27// Fill compo using a dummy bounding box
28std::vector<int> arg_sort_array(const ArrOfDouble& array_to_sort);
29
30std::vector<int> arg_sort_array_phi(const ArrOfDouble& angle_incr, const ArrOfDouble& first_angle, const ArrOfDouble& array_to_sort);
31
32void compute_bounding_box_fill_compo(const IJK_Interfaces& interfaces,
33 DoubleTab& bounding_box,
34 DoubleTab& min_max_larger_box,
35 IJK_Field_double& eulerian_compo_connex,
36 IJK_Field_double& eulerian_compo_connex_ghost,
37 DoubleTab& bubbles_barycentre);
38
39void compute_interfacial_compo_fill_compo(const IJK_Interfaces& interfaces, IJK_Field_double& eulerian_compo_connex);
40
41void compute_rising_velocity_overall(const IJK_Interfaces& interfaces,
42 const DoubleTab& rising_vectors,
43 const ArrOfDouble& rising_velocities,
44 const ArrOfDouble& bubbles_volume,
45 Vecteur3& rising_velocities_overall,
46 const DoubleTab& bubbles_velocities_from_interface,
47 const int& use_bubbles_velocities_from_interface,
48 const DoubleTab& bubbles_velocities_from_barycentres,
49 const int& use_bubbles_velocities_from_barycentres);
50
51void compute_rising_velocity(const IJK_Field_vector3_double& velocity,
52 const IJK_Interfaces& interfaces,
53 const IJK_Field_int& eulerian_compo_connex_ns,
54 const int& gravity_dir,
55 ArrOfDouble& rising_velocities,
56 DoubleTab& rising_vectors,
57 Vecteur3& liquid_velocity,
58 const DoubleTab& bubbles_velocities_from_interface,
59 const int& use_bubbles_velocities_from_interface,
60 const DoubleTab& bubbles_velocities_from_barycentres,
61 const int& use_bubbles_velocities_from_barycentres);
62
63void fill_rising_velocity_double(const IJK_Field_double * eulerian_compo_connex_ns, const ArrOfDouble& rising_velocities,
64 IJK_Field_double& eulerian_rising_velocity);
65
66void fill_rising_velocity_int(const IJK_Field_int& eulerian_compo_connex_ns,
67 const ArrOfDouble& rising_velocities, IJK_Field_double& eulerian_rising_velocity);
68
69#endif /* IJK_Bubble_tools_included */
: class IJK_Interfaces