Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Density Profiles #1762

Merged
Prev Previous commit
Next Next commit
speciesInitialization: namespace & comment
change to density profile naming
  • Loading branch information
ax3l committed Jan 16, 2017
commit aebf3e5ab2914ef804f6b736dfabbe53b9140215
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ namespace particles
/* Available species functors
* in src/picongpu/include/particles/InitFunctors.hpp
*
* - CreateGas<T_GasFunctor, T_PositionFunctor, T_SpeciesType>
* Create particle distribution based on a gas profile and an in-cell
* - CreateGas<T_DensityFunctor, T_PositionFunctor, T_SpeciesType>
* Create particle distribution based on a density profile and an in-cell
* positioning.
* Fills a particle species (`fillAllGaps()` is called).
* @tparam T_GasFunctor unary lambda functor with gas description,
* \see gasConfig.param
* \example gasProfiles::Homogenous,
* @tparam T_DensityFunctor unary lambda functor with density description,
* \see densityConfig.param
* \example densityProfiles::Homogenous,
* @tparam T_PositionFunctor unary lambda functor with position description,
* \see particlesConfig.param
* \example startPosition::Quiet
Expand Down Expand Up @@ -83,7 +83,7 @@ namespace particles
* the functors are called in order (from first to last functor)
*/
typedef mpl::vector<
CreateGas<gasProfiles::GaussianCloud, startPosition::Random, PIC_Electrons>,
CreateGas<densityProfiles::GaussianCloud, startPosition::Random, PIC_Electrons>,
Manipulate<manipulators::AssignYDriftNegative, PIC_Electrons>
> InitPipeline;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ namespace particles
/* Available species functors
* in src/picongpu/include/particles/InitFunctors.hpp
*
* - CreateGas<T_GasFunctor, T_PositionFunctor, T_SpeciesType>
* Create particle distribution based on a gas profile and an in-cell
* - CreateGas<T_DensityFunctor, T_PositionFunctor, T_SpeciesType>
* Create particle distribution based on a density profile and an in-cell
* positioning.
* Fills a particle species (`fillAllGaps()` is called).
* @tparam T_GasFunctor unary lambda functor with gas description,
* \see gasConfig.param
* \example gasProfiles::Homogenous,
* @tparam T_DensityFunctor unary lambda functor with density description,
* \see densityConfig.param
* \example densityProfiles::Homogenous,
* @tparam T_PositionFunctor unary lambda functor with position description,
* \see particlesConfig.param
* \example startPosition::Quiet
Expand Down Expand Up @@ -83,7 +83,7 @@ namespace particles
* the functors are called in order (from first to last functor)
*/
typedef mpl::vector<
CreateGas<gasProfiles::Homogenous, startPosition::Quiet, PIC_Electrons>,
CreateGas<densityProfiles::Homogenous, startPosition::Quiet, PIC_Electrons>,
DeriveSpecies<PIC_Electrons, PIC_Ions>,
Manipulate<manipulators::AssignXDriftPrositiveToLowerQuarterYPosition, PIC_Ions>,
Manipulate<manipulators::AssignXDriftNegativeToMiddleHalfYPosition, PIC_Ions>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ namespace particles
/* Available species functors
* in src/picongpu/include/particles/InitFunctors.hpp
*
* - CreateGas<T_GasFunctor, T_PositionFunctor, T_SpeciesType>
* Create particle distribution based on a gas profile and an in-cell
* - CreateGas<T_DensityFunctor, T_PositionFunctor, T_SpeciesType>
* Create particle distribution based on a density profile and an in-cell
* positioning.
* Fills a particle species (`fillAllGaps()` is called).
* @tparam T_GasFunctor unary lambda functor with gas description,
* \see gasConfig.param
* \example gasProfiles::Homogenous,
* @tparam T_DensityFunctor unary lambda functor with density description,
* \see densityConfig.param
* \example densityProfiles::Homogenous,
* @tparam T_PositionFunctor unary lambda functor with position description,
* \see particlesConfig.param
* \example startPosition::Quiet
Expand Down Expand Up @@ -85,14 +85,14 @@ namespace particles
typedef mpl::vector<
#if( PARAM_IONIZATION == 0 )

CreateGas<gasProfiles::Gaussian, startPosition::Random, PIC_Electrons>
CreateGas<densityProfiles::Gaussian, startPosition::Random, PIC_Electrons>
# if( ENABLE_IONS == 1 )
, DeriveSpecies<PIC_Electrons,PIC_Ions>
# endif

#else

CreateGas<gasProfiles::Gaussian, startPosition::Random, PIC_Ions>,
CreateGas<densityProfiles::Gaussian, startPosition::Random, PIC_Ions>,
Manipulate<manipulators::SetBoundElectrons, PIC_Ions>

#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ namespace particles
/* Available species functors
* in src/picongpu/include/particles/InitFunctors.hpp
*
* - CreateGas<T_GasFunctor, T_PositionFunctor, T_SpeciesType>
* Create particle distribution based on a gas profile and an in-cell
* - CreateGas<T_DensityFunctor, T_PositionFunctor, T_SpeciesType>
* Create particle distribution based on a density profile and an in-cell
* positioning.
* Fills a particle species (`fillAllGaps()` is called).
* @tparam T_GasFunctor unary lambda functor with gas description,
* \see gasConfig.param
* \example gasProfiles::Homogenous,
* @tparam T_DensityFunctor unary lambda functor with density description,
* \see densityConfig.param
* \example densityProfiles::Homogenous,
* @tparam T_PositionFunctor unary lambda functor with position description,
* \see particlesConfig.param
* \example startPosition::Quiet
Expand Down Expand Up @@ -84,7 +84,7 @@ namespace particles
*/
typedef mpl::vector<
CreateGas<
gasProfiles::Homogenous,
densityProfiles::Homogenous,
startPosition::Random,
PIC_Ions
>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ namespace particles
/* Available species functors
* in src/picongpu/include/particles/InitFunctors.hpp
*
* - CreateGas<T_GasFunctor, T_PositionFunctor, T_SpeciesType>
* Create particle distribution based on a gas profile and an in-cell
* - CreateGas<T_DensityFunctor, T_PositionFunctor, T_SpeciesType>
* Create particle distribution based on a density profile and an in-cell
* positioning.
* Fills a particle species (`fillAllGaps()` is called).
* @tparam T_GasFunctor unary lambda functor with gas description,
* \see gasConfig.param
* \example gasProfiles::Homogenous,
* @tparam T_DensityFunctor unary lambda functor with density description,
* \see densityConfig.param
* \example densityProfiles::Homogenous,
* @tparam T_PositionFunctor unary lambda functor with position description,
* \see particlesConfig.param
* \example startPosition::Quiet
Expand Down Expand Up @@ -84,7 +84,7 @@ namespace particles
*/
typedef mpl::vector<
CreateGas<
gasProfiles::Homogenous,
densityProfiles::Homogenous,
startPosition::Quiet,
PIC_Ions
>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ namespace particles
/* Available species functors
* in src/picongpu/include/particles/InitFunctors.hpp
*
* - CreateGas<T_GasFunctor, T_PositionFunctor, T_SpeciesType>
* Create particle distribution based on a gas profile and an in-cell
* - CreateGas<T_DensityFunctor, T_PositionFunctor, T_SpeciesType>
* Create particle distribution based on a density profile and an in-cell
* positioning.
* Fills a particle species (`fillAllGaps()` is called).
* @tparam T_GasFunctor unary lambda functor with gas description,
* \see gasConfig.param
* \example gasProfiles::Homogenous,
* @tparam T_DensityFunctor unary lambda functor with density description,
* \see densityConfig.param
* \example densityProfiles::Homogenous,
* @tparam T_PositionFunctor unary lambda functor with position description,
* \see particlesConfig.param
* \example startPosition::Quiet
Expand Down