1 #ifndef __CS_LAGR_POST_H__ 2 #define __CS_LAGR_POST_H__ 3 4 /*============================================================================ 5 * Lagrangian module postprocessing 6 *============================================================================*/ 7 8 /* 9 This file is part of Code_Saturne, a general-purpose CFD tool. 10 11 Copyright (C) 1998-2021 EDF S.A. 12 13 This program is free software; you can redistribute it and/or modify it under 14 the terms of the GNU General Public License as published by the Free Software 15 Foundation; either version 2 of the License, or (at your option) any later 16 version. 17 18 This program is distributed in the hope that it will be useful, but WITHOUT 19 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 20 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 21 details. 22 23 You should have received a copy of the GNU General Public License along with 24 this program; if not, write to the Free Software Foundation, Inc., 51 Franklin 25 Street, Fifth Floor, Boston, MA 02110-1301, USA. 26 */ 27 28 /*----------------------------------------------------------------------------*/ 29 30 #include "cs_defs.h" 31 32 #include "assert.h" 33 #include "cs_base.h" 34 #include "cs_field.h" 35 36 #include "cs_lagr.h" 37 #include "cs_lagr_particle.h" 38 39 /*----------------------------------------------------------------------------*/ 40 41 BEGIN_C_DECLS 42 43 /*============================================================================= 44 * Macro definitions 45 *============================================================================*/ 46 47 /*============================================================================ 48 * Type definitions 49 *============================================================================*/ 50 51 /*============================================================================ 52 Global variables 53 ============================================================================*/ 54 55 /*============================================================================ 56 * Public function prototypes 57 *============================================================================*/ 58 59 /*----------------------------------------------------------------------------*/ 60 /*! 61 * \brief Initialize Lagrangian postprocessing. 62 */ 63 /*----------------------------------------------------------------------------*/ 64 65 void 66 cs_lagr_post_init(void); 67 68 /*----------------------------------------------------------------------------*/ 69 /*! 70 * \brief Activate or deactive postprocessing for a given particle attribute. 71 * 72 * \param[in] attr_id associated attribute id 73 * 74 * \return true if output of given attribute is active, false otherwise 75 */ 76 /*----------------------------------------------------------------------------*/ 77 78 bool 79 cs_lagr_post_get_attr(cs_lagr_attribute_t attr_id); 80 81 /*----------------------------------------------------------------------------*/ 82 /*! 83 * \brief Activate or deactive postprocessing for a given particle attribute. 84 * 85 * \param[in] attr_id associated attribute id 86 * \param[in] active true if postprocessing is required, false otherwise 87 */ 88 /*----------------------------------------------------------------------------*/ 89 90 void 91 cs_lagr_post_set_attr(cs_lagr_attribute_t attr_id, 92 bool active); 93 94 /*----------------------------------------------------------------------------*/ 95 96 END_C_DECLS 97 98 #endif /* __CS_LAGR_POST_H__ */ 99