SPH
Classes | Public Types | Public Attributes | List of all members
PkdgravParams Struct Reference

#include <Output.h>

Classes

struct  Conversion
 Conversion factors for pkdgrav. More...
 

Public Types

enum class  Radius { FROM_SMOOTHING_LENGTH , FROM_DENSITY }
 Conversion formula from SPH particles to hard spheres in pkdgrav. More...
 

Public Attributes

Radius radius = Radius::FROM_DENSITY
 
struct PkdgravParams::Conversion conversion
 
Vector omega = Vector(0._f)
 
Float vaporThreshold = 1.e6_f
 
Array< Sizecolors { 3, 13 }
 

Detailed Description

Definition at line 490 of file Output.h.

Member Enumeration Documentation

◆ Radius

enum PkdgravParams::Radius
strong

Conversion formula from SPH particles to hard spheres in pkdgrav.

Enumerator
FROM_SMOOTHING_LENGTH 

Compute sphere radius using R = h/3 formula.

FROM_DENSITY 

Compute sphere radius so that its mass is equivalent to the mass of SPH particle.

Definition at line 493 of file Output.h.

Member Data Documentation

◆ colors

Array<Size> PkdgravParams::colors { 3, 13 }

Color indices of individual bodies in the simulations. The size of the array must be equal (or bigger) than the number of bodies in the storage.

Definition at line 524 of file Output.h.

◆ conversion

struct PkdgravParams::Conversion PkdgravParams::conversion

◆ omega

Vector PkdgravParams::omega = Vector(0._f)

Adds additional rotation of all particles around the origin. This can be used to convert a non-intertial coordinate system used in the code to intertial system.

Definition at line 516 of file Output.h.

◆ radius

Radius PkdgravParams::radius = Radius::FROM_DENSITY

Definition at line 501 of file Output.h.

◆ vaporThreshold

Float PkdgravParams::vaporThreshold = 1.e6_f

Threshold of internal energy; particles with higher energy are considered a vapor and we discard them in the output

Definition at line 520 of file Output.h.


The documentation for this struct was generated from the following file: