diff options
author | 2019-03-01 11:14:21 -0800 | |
---|---|---|
committer | 2019-03-01 11:14:21 -0800 | |
commit | 26fdde5c879d3fa965bc5f2b4bda7432b4ae0e50 (patch) | |
tree | 9455e4117e8cac9625132368881872bcff727d95 /Source/Initialization/CustomMomentumProb.cpp | |
parent | 24ae5647745f93978c88a005acefdcacf356e418 (diff) | |
parent | 7e7dccaa7fb1206f829f8747f2ec2ad80bec599c (diff) | |
download | WarpX-26fdde5c879d3fa965bc5f2b4bda7432b4ae0e50.tar.gz WarpX-26fdde5c879d3fa965bc5f2b4bda7432b4ae0e50.tar.zst WarpX-26fdde5c879d3fa965bc5f2b4bda7432b4ae0e50.zip |
Merge pull request #56 from ECP-WarpX/source_subfolders
Reorganize Source with subfolders
Diffstat (limited to 'Source/Initialization/CustomMomentumProb.cpp')
-rw-r--r-- | Source/Initialization/CustomMomentumProb.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/Initialization/CustomMomentumProb.cpp b/Source/Initialization/CustomMomentumProb.cpp new file mode 100644 index 000000000..fa21252d0 --- /dev/null +++ b/Source/Initialization/CustomMomentumProb.cpp @@ -0,0 +1,14 @@ +#include <PlasmaInjector.H> + +#include <iostream> + +using namespace amrex; + +/// +/// This "custom" momentum distribution just does 0 momentum +/// +void CustomMomentumDistribution::getMomentum(vec3& u, Real x, Real y, Real z) { + u[0] = 0; + u[1] = 0; + u[2] = 0; +} |