8.0
general documentation
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
cs_meg_initialization.c File Reference

This function is used for the initalization of fields over a given volume zone. The mathematical expression is defined in the GUI. More...

#include "cs_defs.h"
#include <assert.h>
#include <math.h>
#include "cs_headers.h"
+ Include dependency graph for cs_meg_initialization.c:

Functions

cs_real_tcs_meg_initialization (const char *zone_name, const cs_lnum_t n_elts, const cs_lnum_t *elt_ids, const cs_real_t xyz[][3], const char *field_name)
 

Detailed Description

This function is used for the initalization of fields over a given volume zone. The mathematical expression is defined in the GUI.

The caller is responsible for freeing the associated array.

Parameters
[in]zone_namename of a volume zone
[in]n_eltsnumber of elements related to the zone
[in]elt_idslist of element ids related to the zone
[in]xyzlist of coordinates related to the zone
[in]field_nameassociated variable field name
Returns
a pointer to allocated initialization values.

Function Documentation

◆ cs_meg_initialization()

cs_real_t* cs_meg_initialization ( const char *  zone_name,
const cs_lnum_t  n_elts,
const cs_lnum_t elt_ids,
const cs_real_t  xyz[][3],
const char *  field_name 
)