9.0
general documentation
Loading...
Searching...
No Matches
cs_meg_source_terms.cxx File Reference

This function is used to compute source terms over a volume zone. The mathematical expression is defined in the GUI. More...

#include "base/cs_defs.h"
#include <assert.h>
#include <math.h>
#include "cs_headers.h"
Include dependency graph for cs_meg_source_terms.cxx:

Functions

void cs_meg_source_terms (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, const char *source_type, cs_real_t *retvals)
 This function is used to compute source terms over a volume zone. The mathematical expression is defined in the GUI.

Detailed Description

This function is used to compute source terms over a volume zone. The mathematical expression is defined in the GUI.

The caller is responsible for freeing the returned 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_namevariable field name
[in]source_typesource term type
[out]retvalsarray of computed values

Function Documentation

◆ cs_meg_source_terms()

void cs_meg_source_terms ( const char * zone_name,
const cs_lnum_t n_elts,
const cs_lnum_t * elt_ids,
const cs_real_t xyz[][3],
const char * name,
const char * source_type,
cs_real_t * retvals )

This function is used to compute source terms over a volume zone. The mathematical expression is defined in the GUI.

The caller is responsible for freeing the returned 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_namevariable field name
[in]source_typesource term type
[out]retvalsarray of computed values