Electric arcs example
Local variables to be added
The following local variables need to be defined for the examples in this section:
const cs_lnum_t n_cells = domain->mesh-> n_cells;
= (
const cs_real_3_t *)domain->mesh_quantities->cell_cen;
Allocation
Before user initialization, work arrays lstelt must be allocated, like in basic example.
Initialization
Classical initialization:
if (domain->time_step->nt_prev > 0)
return;
if (n_gasses > 1) {
for (int sp_id = 1; sp_id < n_gasses-1; sp_id++)
}
}
else {
false,
cpro_t,
cvar_h);
}
cs_real_t rayo = sqrt( cell_cen[i][0]*cell_cen[i][0]
+ cell_cen[i][1]*cell_cen[i][1]);
if (rayo <= 0.8e-3)
cvar_h[i] = hhot;
}