Added class for TwoPhase TCAT averages and unit test tests/TestTwoPhase.cpp

This commit is contained in:
James E McClure
2015-01-07 20:50:41 -05:00
parent e7fe316adc
commit 8ea7f86eae
3 changed files with 17 additions and 5 deletions

View File

@@ -7,8 +7,7 @@
#include <stdexcept>
#include <fstream>
#include "pmmc.h"
#include "Domain.h"
#include "TwoPhase.h"
#include "Extras.h"
#include "D3Q19.h"
#include "D3Q7.h"
@@ -21,6 +20,20 @@
int main(int argc, char **argv)
{
int rank,npx,npy,npz;
int Nx,Ny,Nz;
double Lx,Ly,Lz;
Nx=Ny=Nz=40;
rank=0;
npx=npy=npz=1;
Lx=Ly=Lz=1.0;
Domain Dm(Nx,Ny,Nz,rank,npx,npy,npz,Lx,Ly,Lz);
TwoPhase Averages(Dm);
Averages.SetupCubes(Dm);
Averages.Initialize();
Averages.Compute();
return 0;
}