PETSc version 3.16.6
Fix/Edit manual page

LandauAddMaxwellians

Add a Maxwellian distribution to a state

Synopsis

#include "petscdmplex.h" 
#include "petsclandau.h"   
PetscErrorCode LandauAddMaxwellians(DM dm, Vec X, PetscReal time, PetscReal temps[], PetscReal ns[], PetscInt grid, void *actx)
Collective on X

Input Parameters

. dm - The mesh (local) + time - Current time - temps - Temperatures of each species (global) . ns - Number density of each species (global) - grid - index into current grid - just used for offset into temp and ns + actx - Landau context

Output Parameter

. X - The state (local to this grid)

.keywords: mesh .seealso: LandauCreateVelocitySpace()

Level

beginner

Location

src/ts/utils/dmplexlandauplexland.c

Examples

src/ts/utils/dmplexlandau/tutorials/ex2.c.html

Index of all LANDAU routines
Table of Contents for all manual pages
Index of all manual pages