9.2
general documentation
cs_mesh_adaptive_refinement.h File Reference
#include "base/cs_base.h"
#include "base/cs_time_control.h"
#include "mesh/cs_mesh.h"
+ Include dependency graph for cs_mesh_adaptive_refinement.h:

Go to the source code of this file.

Classes

struct  cs_amr_info_t
 

Typedefs

typedef void() cs_amr_indicator_t(const void *input, int *vals)
 
typedef void() cs_amr_refinement_interpolation_t(cs_mesh_t *mesh, int location_id, const cs_lnum_t n_i_elts, const cs_lnum_t o2n_idx[], const cs_lnum_t new_idx[], const cs_real_3_t o_cog[], const cs_real_3_t n_cog[], const cs_real_t measure[])
 
typedef void() cs_amr_coarsening_interpolation_t(cs_mesh_t *mesh, int location_id, const cs_lnum_t n_i_elts, const cs_lnum_t n2o_idx[], const cs_lnum_t n2o[], const cs_real_t measure[], const cs_lnum_t i_face_map[])
 

Functions

void cs_adaptive_refinement_define (int n_layers, int n_freq, cs_amr_indicator_t *indic_func, const void *indic_input, int interpolation, bool load_balance)
 Activation and Initializing af the global AMR structure. More...
 
void cs_adaptive_refinement_update_gradients (void)
 Compute field gradients when necessary (for fields interpolation) More...
 
void cs_adaptive_refinement_free_gradients (void)
 Free field gradients. More...
 
void cs_adaptive_refinement_step (void)
 Perform a refinement / coarsening step. More...
 

Variables

cs_amr_info_tcs_glob_amr_info
 

Typedef Documentation

◆ cs_amr_coarsening_interpolation_t

typedef void() cs_amr_coarsening_interpolation_t(cs_mesh_t *mesh, int location_id, const cs_lnum_t n_i_elts, const cs_lnum_t n2o_idx[], const cs_lnum_t n2o[], const cs_real_t measure[], const cs_lnum_t i_face_map[])

◆ cs_amr_indicator_t

typedef void() cs_amr_indicator_t(const void *input, int *vals)

◆ cs_amr_refinement_interpolation_t

typedef void() cs_amr_refinement_interpolation_t(cs_mesh_t *mesh, int location_id, const cs_lnum_t n_i_elts, const cs_lnum_t o2n_idx[], const cs_lnum_t new_idx[], const cs_real_3_t o_cog[], const cs_real_3_t n_cog[], const cs_real_t measure[])

Function Documentation

◆ cs_adaptive_refinement_define()

void cs_adaptive_refinement_define ( int  n_layers,
int  nt_interval,
cs_amr_indicator_t indic_func,
const void *  indic_input,
int  interpolation,
bool  load_balance 
)

Activation and Initializing af the global AMR structure.

Parameters
[in]n_layersnumber of layers of refinement around user criteria
[in]nt_intervaltime_step interval between adaptation steps
[in]indic_funcuser function marking cells that should be refined
[in]indic_inputinput for indic_func or nullptr
[in]load_balanceactivate load balancing post mesh adapation

◆ cs_adaptive_refinement_free_gradients()

void cs_adaptive_refinement_free_gradients ( void  )

Free field gradients.

◆ cs_adaptive_refinement_step()

void cs_adaptive_refinement_step ( void  )

Perform a refinement / coarsening step.

◆ cs_adaptive_refinement_update_gradients()

void cs_adaptive_refinement_update_gradients ( void  )

Compute field gradients when necessary (for fields interpolation)

Variable Documentation

◆ cs_glob_amr_info

cs_amr_info_t* cs_glob_amr_info
extern