8.1
general documentation
cs_porosity_from_scan.h File Reference
#include <ple_locator.h>
#include "fvm_nodal.h"
#include "cs_base.h"
#include "cs_halo.h"
#include "cs_mesh.h"
#include "cs_mesh_quantities.h"
+ Include dependency graph for cs_porosity_from_scan.h:

Go to the source code of this file.

Data Structures

struct  cs_porosity_from_scan_opt_t
 

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)
 Compute the porosity which is equal to one from a source, radiating sphericaly, and is 0 when touching points of the scan. More...
 

Variables

cs_porosity_from_scan_opt_tcs_glob_porosity_from_scan_opt
 

Function Documentation

◆ cs_compute_porosity_from_scan()

void cs_compute_porosity_from_scan ( void  )

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 $ \varia $:

\[ \dfrac{\partial \varia}{\partial t} + \divs \left( \varia \vect{e}_r \right) - \divs \left( \vect{e}_r \right) \varia = 0 \]

where $ \vect{e}_r = \dfrac{\vect{x} - \vect{x}_0}{\norm{\vect{x} - \vect{x}_0}} $ is the radial direction from the source $\vect{x}_0 $.

The boundary conditions on $ \varia $ is an homogeneous Neumann, and a penalisation term is impose in the cell of center $ \vect{x}_0$.

\[ \dfrac{\partial \varia}{\partial n} = 0 \textrm{everywhere} \]

Remarks:

  • a steady state is looked for.

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 $ \varia $:

\[ \dfrac{\partial \varia}{\partial t} + \divs \left( \varia \vect{e}_r \right) - \divs \left( \vect{e}_r \right) \varia = 0 \]

where $ \vect{e}_r = \dfrac{\vect{x} - \vect{x}_0}{\norm{\vect{x} - \vect{x}_0}} $ is the radial direction from the source $\vect{x}_0 $.

The boundary conditions on $ \varia $ is an homogeneous Neumann, and a penalisation term is impose in the cell of center $ \vect{x}_0$.

\[ \dfrac{\partial \varia}{\partial n} = 0 \textrm{everywhere} \]

Remarks:

  • a steady state is looked for.

◆ cs_ibm_add_sources_by_file_name()

void cs_ibm_add_sources_by_file_name ( const char *  file_name)

Add the scanner sources from csv file to fill fluid space.

Parameters
[in]csvfile containing the (x,y,z) coordinates of each scanner

◆ cs_porosity_from_scan_add_source()

void cs_porosity_from_scan_add_source ( const cs_real_t  source[3],
bool  transform 
)

Add a scanner source point.

Parameters
[in]sourcesource vector
[in]transformflag to apply the transformation matrix to the source

◆ cs_porosity_from_scan_set_file_name()

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.

Parameters
[in]file_namename of the file.

◆ cs_porosity_from_scan_set_output_name()

void cs_porosity_from_scan_set_output_name ( const char *  output_name)

Set the output name for the FVM writer of scan points.

Parameters
[in]output_namename of the output (a suffix will be added)

Variable Documentation

◆ cs_glob_porosity_from_scan_opt

cs_porosity_from_scan_opt_t* cs_glob_porosity_from_scan_opt
extern