Canoe
Comprehensive Atmosphere N' Ocean Engine
two_phase_cloud_particles.cpp
Go to the documentation of this file.
1 
9 // C/C++ headers
10 #include <iostream>
11 
12 // Athena++ headers
13 #include "../mesh/mesh.hpp"
14 #include "particles.hpp"
15 
16 TwoPhaseCloudParticles::TwoPhaseCloudParticles(MeshBlock *pmb,
17  ParameterInput *pin,
18  std::string name)
19  : Particles(pmb, pin, name, 2) {
20  ATHENA_LOG("TwoPhaseCloudParticles")
21  cnames_.resize(2);
22  cnames_[0] = "liquid";
23  cnames_[1] = "solid";
24  std::cout << "- First category is " << name + " liquid" << std::endl;
25  std::cout << "- Second category is " << name + " solid" << std::endl;
26 }
27 
28 void TwoPhaseCloudParticles::ExchangeHydro(std::vector<MaterialPoint> &mp,
29  AthenaArray<Real> &du,
30  AthenaArray<Real> const &w,
31  Real dt) {
32  Particles::ExchangeHydro(mp, du, w, dt);
33  // for (std::vector<MaterialPoint>::iterator it = mp.begin(); it != mp.end();
34  // ++it) {
35  // it->v1 += -10.;
36  // }
37 }