/usr/share/code_saturne/user/cs_user_radiative_transfer.c is in code-saturne-data 4.3.3+repack-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 | /*============================================================================
* Radiation solver operations.
*============================================================================*/
/* Code_Saturne version 4.3.3 */
/*
This file is part of Code_Saturne, a general-purpose CFD tool.
Copyright (C) 1998-2016 EDF S.A.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
details.
You should have received a copy of the GNU General Public License along with
this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
/*----------------------------------------------------------------------------*/
#include "cs_defs.h"
/*----------------------------------------------------------------------------
* Standard C library headers
*----------------------------------------------------------------------------*/
#include <assert.h>
#include <string.h>
#include <math.h>
#if defined(HAVE_MPI)
#include <mpi.h>
#endif
/*----------------------------------------------------------------------------
* Local headers
*----------------------------------------------------------------------------*/
#include "bft_mem.h"
#include "bft_error.h"
#include "bft_printf.h"
#include "fvm_writer.h"
#include "cs_base.h"
#include "cs_field.h"
#include "cs_field_pointer.h"
#include "cs_field_operator.h"
#include "cs_math.h"
#include "cs_mesh.h"
#include "cs_mesh_location.h"
#include "cs_mesh_quantities.h"
#include "cs_halo.h"
#include "cs_log.h"
#include "cs_parall.h"
#include "cs_parameters.h"
#include "cs_physical_constants.h"
#include "cs_physical_model.h"
#include "cs_prototypes.h"
#include "cs_restart.h"
#include "cs_rotation.h"
#include "cs_time_step.h"
#include "cs_selector.h"
#include "cs_rad_transfer.h"
#include "cs_post.h"
/*----------------------------------------------------------------------------
* Header for the current file
*----------------------------------------------------------------------------*/
#include "cs_prototypes.h"
/*----------------------------------------------------------------------------*/
BEGIN_C_DECLS
/*=============================================================================
* Additional Doxygen documentation
*============================================================================*/
/*! \file cs_user_radiative_transfer.c
*
* \brief User subroutine for input of radiative transfer parameters : absorption
* coefficient and net radiation flux.
*
* See \subpage cs_user_radiative_transfer for examples.
*/
/*! \cond DOXYGEN_SHOULD_SKIP_THIS */
/*! (DOXYGEN_SHOULD_SKIP_THIS) \endcond */
/*=============================================================================
* Public function definitions
*============================================================================*/
/*----------------------------------------------------------------------------*/
/*!
* \brief User function for input of radiative transfer module options.
*/
/*----------------------------------------------------------------------------*/
void
cs_user_radiative_transfer_parameters(void)
{
}
/*-------------------------------------------------------------------------------*/
/*!
* \brief Absorption coefficient for radiative module
*
* It is necessary to define the value of the fluid's absorption coefficient Ck.
*
* This value is defined automatically for specific physical models, such
* as gas and coal combustion, so this function should not be used with
* these models.
*
* For a transparent medium, the coefficient should be set to 0.
*
* In the case of the P-1 model, we check that the optical length is at
* least of the order of 1.
*
* \param[in] bc_type boundary face types
* \param[in] izfrdp zone number for boundary faces
* \param[in] dt time step (per cell)
* \param[out] ck medium's absorption coefficient
* (zero if transparent)
*/
/*-------------------------------------------------------------------------------*/
void
cs_user_rad_transfer_absorption(const int bc_type[],
const int izfrdp[],
const cs_real_t dt[],
cs_real_t ck[])
{
}
/*-------------------------------------------------------------------------------*/
/*!
* \brief Compute the net radiation flux.
*
* The density of net radiation flux must be calculated
* consistently with the boundary conditions of the intensity.
* The density of net flux is the balance between the radiative
* emiting part of a boudary face (and not the reflecting one)
* and the radiative absorbing part.
*
* \param[in] bc_type boundary face types
* \param[in] izfrdp boundary faces -> zone number
* \param[in] dt time step (per cell)
* \param[in] coefap boundary condition work array for the luminance
* (explicit part)
* \param[in] coefbp boundary condition work array for the luminance
* (implicit part)
* \param[in] cofafp boundary condition work array for the diffusion
* of the luminance (explicit part)
* \param[in] cofbfp boundary condition work array for the diffusion
* of the luminance (implicit part)
* \param[in] twall inside current wall temperature (K)
* \param[in] qincid radiative incident flux (W/m2)
* \param[in] xlamp conductivity (W/m/K)
* \param[in] epap thickness (m)
* \param[in] epsp emissivity (>0)
* \param[in] ck absorption coefficient
* \param[out] net_flux net flux (W/m2)
*/
/*-------------------------------------------------------------------------------*/
void
cs_user_rad_transfer_net_flux(const int itypfb[],
const int izfrdp[],
const cs_real_t dt[],
const cs_real_t coefap[],
const cs_real_t coefbp[],
const cs_real_t cofafp[],
const cs_real_t cofbfp[],
const cs_real_t twall[],
const cs_real_t qincid[],
const cs_real_t xlam[],
const cs_real_t epa[],
const cs_real_t eps[],
const cs_real_t ck[],
cs_real_t net_flux[])
{
}
/*----------------------------------------------------------------------------*/
END_C_DECLS
|