My Project
programmer's documentation
Functions
cs_user_head_losses.c File Reference

User head loss definitions. More...

#include "cs_defs.h"
#include <assert.h>
#include <math.h>
#include <ple_coupling.h>
#include "bft_mem.h"
#include "bft_error.h"
#include "bft_printf.h"
#include "cs_base.h"
#include "cs_field.h"
#include "cs_field_pointer.h"
#include "cs_field_operator.h"
#include "cs_math.h"
#include "cs_mesh.h"
#include "cs_mesh_quantities.h"
#include "cs_halo.h"
#include "cs_log.h"
#include "cs_notebook.h"
#include "cs_parameters.h"
#include "cs_prototypes.h"
#include "cs_rotation.h"
#include "cs_time_step.h"
#include "cs_turbomachinery.h"
#include "cs_volume_zone.h"
Include dependency graph for cs_user_head_losses.c:

Functions

void cs_user_head_losses (const cs_zone_t *zone, cs_real_t cku[][6])
 Define head losses for a given volume zone. More...
 

Detailed Description

User head loss definitions.

Function Documentation

◆ cs_user_head_losses()

void cs_user_head_losses ( const cs_zone_t zone,
cs_real_t  cku[][6] 
)

Define head losses for a given volume zone.

Compute GUI-defined head losses for a given volume zone.

Head loss tensor coefficients for each cell are organized as follows: ck11, ck22, ck33, ck12, ck13, ck23.

Coefficients are set to zero (then computed based on definitions provided through the GUI if this is the case) before calling this function, so setting values to zero is usually not necessary, unless we want to fully overwrite a GUI-based definition.

Diagonal coefficients must be positive; the calculation may diverge if this is not the case.

Parameters
[in]zonepointer to zone structure
[in,out]ckuhead loss coefficients