9.0
general documentation
Loading...
Searching...
No Matches
cs_mesh_to_builder.h File Reference
#include "base/cs_defs.h"
#include "fvm/fvm_group.h"
#include "fvm/fvm_selector.h"
#include "fvm/fvm_periodicity.h"
#include "base/cs_base.h"
#include "base/cs_io.h"
#include "mesh/cs_mesh.h"
#include "mesh/cs_mesh_builder.h"
#include "base/cs_part_to_block.h"
Include dependency graph for cs_mesh_to_builder.h:

Go to the source code of this file.

Functions

void cs_mesh_to_builder (cs_mesh_t *mesh, cs_mesh_builder_t *mb, bool transfer, cs_io_t *pp_out)
 Transfer mesh to mesh builder structure.
void cs_mesh_to_builder_partition (const cs_mesh_t *mesh, cs_mesh_builder_t *mb)
 Transfer mesh partitioning info to mesh builder structure.
void cs_mesh_to_builder_perio_faces (const cs_mesh_t *mesh, cs_mesh_builder_t *mb)
 Reconstruct periodic faces info from mesh to builder.

Function Documentation

◆ cs_mesh_to_builder()

void cs_mesh_to_builder ( cs_mesh_t * mesh,
cs_mesh_builder_t * mb,
bool transfer,
cs_io_t * pp_out )

Transfer mesh to mesh builder structure.

As the dataflow is very similar, but may be done array-by array to minimize memory overhead, this function also handles a part of the output to file needed to save a mesh file.

Parameters
[in,out]meshpointer to mesh structure
[in,out]mbpointer to mesh builder structure
[in]transferif true, data is transferred from mesh to builder; if false, builder fields are only used as a temporary arrays.
[in,out]pp_outoptional output file, or nullptr

◆ cs_mesh_to_builder_partition()

void cs_mesh_to_builder_partition ( const cs_mesh_t * mesh,
cs_mesh_builder_t * mb )

Transfer mesh partitioning info to mesh builder structure.

Parameters
[in]meshpointer to mesh structure
[in,out]mbpointer to mesh builder structure

◆ cs_mesh_to_builder_perio_faces()

void cs_mesh_to_builder_perio_faces ( const cs_mesh_t * mesh,
cs_mesh_builder_t * mb )

Reconstruct periodic faces info from mesh to builder.

Parameters
[in]meshpointer to mesh structure
[in,out]mbpointer to mesh builder structure