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

Define scaling parameter for electric model. More...

#include "cs_defs.h"
#include <math.h>
#include "cs_base.h"
#include "cs_mesh.h"
#include "cs_math.h"
#include "cs_mesh_quantities.h"
#include "cs_elec_model.h"
#include "bft_mem.h"
#include "bft_printf.h"
#include "cs_field.h"
#include "cs_field_pointer.h"
#include "cs_notebook.h"
#include "cs_parall.h"
#include "cs_prototypes.h"
Include dependency graph for cs_user_electric_scaling.c:

Functions

void cs_user_scaling_elec (const cs_mesh_t *mesh, const cs_mesh_quantities_t *mesh_quantities, cs_real_t *dt)
 Rescale all electro-magnetic physical fields (electric potential, current density and Joule effect). More...
 

Detailed Description

Define scaling parameter for electric model.

Function Documentation

◆ cs_user_scaling_elec()

void cs_user_scaling_elec ( const cs_mesh_t mesh,
const cs_mesh_quantities_t mesh_quantities,
cs_real_t dt 
)

Rescale all electro-magnetic physical fields (electric potential, current density and Joule effect).

Define scaling parameter for electric model.

Parameters
[in]meshpointer to a cs_mesh_t structure
[in,out]mesh_quantitiespointer to a cs_mesh_quantities_t structure
[in]dtpointer to a cs_real_t

These options allow defining the time step synchronization policy, as well as a time step multiplier.