#include "cs_defs.h"#include <assert.h>#include <errno.h>#include <stdio.h>#include <stdarg.h>#include <stdlib.h>#include <string.h>#include <math.h>#include <float.h>#include <mpi.h>#include <ple_locator.h>#include "bft_mem.h"#include "bft_error.h"#include "bft_printf.h"#include "fvm_nodal.h"#include "fvm_nodal_extract.h"#include "fvm_point_location.h"#include "cs_base.h"#include "cs_boundary_conditions_set_coeffs.h"#include "cs_boundary_zone.h"#include "cs_coupling.h"#include "cs_domain.h"#include "cs_field.h"#include "cs_field_pointer.h"#include "cs_field_default.h"#include "cs_field_operator.h"#include "cs_file_csv_parser.h"#include "cs_geom.h"#include "cs_halo.h"#include "cs_io.h"#include "cs_log.h"#include "cs_math.h"#include "cs_mesh.h"#include "cs_mesh_connect.h"#include "cs_mesh_location.h"#include "cs_mesh_quantities.h"#include "cs_parall.h"#include "cs_porous_model.h"#include "cs_equation_iterative_solve.h"#include "cs_physical_constants.h"#include "cs_post.h"#include "cs_timer.h"#include "cs_volume_zone.h"#include "cs_porosity_from_scan.h" Include dependency graph for cs_porosity_from_scan.c:
 Include dependency graph for cs_porosity_from_scan.c:| Functions | |
| void | cs_porosity_from_scan_set_file_name (const char *file_name) | 
| Set the file name of points for the computation of the porosity from scan.  More... | |
| void | cs_porosity_from_scan_set_output_name (const char *output_name) | 
| Set the output name for the FVM writer of scan points.  More... | |
| void | cs_porosity_from_scan_add_source (const cs_real_t source[3], bool transform) | 
| Add a scanner source point.  More... | |
| void | cs_ibm_add_sources_by_file_name (const char *file_name) | 
| Add the scanner sources from csv file to fill fluid space.  More... | |
| void | cs_compute_porosity_from_scan (void) | 
| Computes the porosity which is equal to one from a source, radiating sphericaly, and is 0 when touching points of the scan.  More... | |
| void cs_compute_porosity_from_scan | ( | void | ) | 
Computes the porosity which is equal to one from a source, radiating sphericaly, and is 0 when touching points of the scan.
Compute the porosity which is equal to one from a source, radiating sphericaly, and is 0 when touching points of the scan.
This function solves the following transport equation on  :
: 
![\[ \dfrac{\partial \varia}{\partial t} + \divs \left( \varia \vect{e}_r \right) - \divs \left( \vect{e}_r \right) \varia = 0 \]](form_235.png) 
 where  is the radial direction from the source
 is the radial direction from the source  .
.
The boundary conditions on  is an homogeneous Neumann, and a penalisation term is impose in the cell of center
 is an homogeneous Neumann, and a penalisation term is impose in the cell of center  .
. 
![\[ \dfrac{\partial \varia}{\partial n} = 0 \textrm{everywhere} \]](form_239.png) 
Remarks:
| void cs_ibm_add_sources_by_file_name | ( | const char * | file_name | ) | 
Add the scanner sources from csv file to fill fluid space.
| [in] | csv | file containing the (x,y,z) coordinates of each scanner | 
| void cs_porosity_from_scan_add_source | ( | const cs_real_t | source[3], | 
| bool | transform | ||
| ) | 
Add a scanner source point.
| [in] | source | source vector | 
| [in] | transform | flag to apply the transformation matrix to the source | 
| void cs_porosity_from_scan_set_file_name | ( | const char * | file_name | ) | 
Set the file name of points for the computation of the porosity from scan.
| [in] | file_name | name of the file. | 
| void cs_porosity_from_scan_set_output_name | ( | const char * | output_name | ) | 
Set the output name for the FVM writer of scan points.
| [in] | output_name | name of the output (a suffix will be added) |