blob: 8f1c79bde0a34eaa2dd4bcfba8b643c23b989274 [file] [log] [blame]
/*
* HydroBC.hh
*
* Created on: Jan 13, 2012
* Author: cferenba
*
* Copyright (c) 2012, Los Alamos National Security, LLC.
* All rights reserved.
* Use of this source code is governed by a BSD-style open-source
* license; see top-level LICENSE file for full license text.
*/
#ifndef HYDROBC_HH_
#define HYDROBC_HH_
#include <vector>
#include "Vec2.hh"
// forward declarations
class Mesh;
class HydroBC {
public:
// associated mesh object
Mesh* mesh;
int numb; // number of bdy points
double2 vfix; // vector perp. to fixed plane
int* mapbp; // map: bdy point -> point
std::vector<int> pchbfirst; // start/stop index for bdy pt chunks
std::vector<int> pchblast;
HydroBC(
Mesh* msh,
const double2 v,
const std::vector<int>& mbp);
~HydroBC();
void applyFixedBC(
double2* pu,
double2* pf,
const int bfirst,
const int blast);
}; // class HydroBC
#endif /* HYDROBC_HH_ */