TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Probleme_FTD_IJK.cpp
1/****************************************************************************
2* Copyright (c) 2025, 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#include <Navier_Stokes_FTD_IJK.h>
17#include <Probleme_FTD_IJK.h>
18
19Implemente_instanciable(Probleme_FTD_IJK, "Probleme_FTD_IJK", Probleme_FTD_IJK_base);
20
21Sortie& Probleme_FTD_IJK::printOn(Sortie& os) const { return os; }
23
25{
26 Cerr << "Probleme_FTD_IJK::initialize()" << finl;
27
28 domaine_ijk_->get_local_mesh_delta(DIRECTION_K, 2 /* ghost cells */, delta_z_local_);
29
31
32 if (has_thermals_)
33 {
34 IJK_Thermals& thermals = get_ijk_thermals();
37 }
38 // TODO : FIXME : faut boucler plus tard sur les equations IJK
39 Navier_Stokes_FTD_IJK& eq_ns = ref_cast(Navier_Stokes_FTD_IJK, equations_.front().valeur());
40 const auto& bc = eq_ns.get_boundary_conditions();
41
42 auto& vel = eq_ns.get_velocity();
44 {
45 allocate_velocity(vel, domaine_ijk_.valeur(), 2, "VELOCITY", bc.get_dU_perio(bc.get_resolution_u_prime_()));
46 }
47 else
48 allocate_velocity(vel, domaine_ijk_.valeur(), thermal_probes_ghost_cells_);
49
51}
52
53// Pour creer une dilatation forcee (cas test champs FT)
55{
56 ref_cast(Navier_Stokes_FTD_IJK, equations_.front().valeur()).create_forced_dilation();
57}
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
void compute_ghost_cell_numbers_for_subproblems(const Domaine_IJK &splitting, int ghost_init)
int get_probes_ghost_cells(int ghost_init)
virtual Entree & readOn(Entree &)
Lecture d'un Objet_U sur un flot d'entree Methode a surcharger.
Definition Objet_U.cpp:293
virtual Sortie & printOn(Sortie &) const
Ecriture de l'objet sur un flot de sortie Methode a surcharger.
Definition Objet_U.cpp:282
ArrOfDouble_with_ghost delta_z_local_
void initialize() override
This method is called once at the beginning, before any other one of the interface Problem.
const Navier_Stokes_FTD_IJK & eq_ns() const
const IJK_Thermals & get_ijk_thermals() const
void initialize() override
This method is called once at the beginning, before any other one of the interface Problem.
void create_forced_dilation() override
Classe de base des flux de sortie.
Definition Sortie.h:52