2016-12-29 18:06:16 +00:00
|
|
|
// ductbc.h
|
|
|
|
//
|
|
|
|
// Author: J.A. de Jong
|
|
|
|
//
|
|
|
|
// Description:
|
|
|
|
// Prototype for duct boundary conditions
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#pragma once
|
|
|
|
#ifndef DUCTBC_H
|
|
|
|
#define DUCTBC_H
|
|
|
|
#include "segment.h"
|
2017-01-08 19:55:03 +00:00
|
|
|
#include "ductbc.pb.h"
|
2016-12-29 18:06:16 +00:00
|
|
|
|
2017-01-08 19:55:03 +00:00
|
|
|
class TaSystem;
|
|
|
|
class Duct;
|
2016-12-29 18:06:16 +00:00
|
|
|
|
2017-01-08 19:55:03 +00:00
|
|
|
class DuctBc :public Segment {
|
|
|
|
pb::DuctBc _dbc;
|
2016-12-29 18:06:16 +00:00
|
|
|
public:
|
2017-01-08 19:55:03 +00:00
|
|
|
DuctBc(const us id,
|
|
|
|
const pb::DuctBc& dbc):
|
|
|
|
Segment(id,dbc.name()),
|
|
|
|
_dbc(dbc) {}
|
|
|
|
|
|
|
|
DuctBc(const DuctBc& o): Segment(o),_dbc(o._dbc) {}
|
|
|
|
|
|
|
|
static DuctBc* newDuctBc(const us id,
|
|
|
|
const TaSystem& sys,
|
|
|
|
const pb::DuctBc&);
|
|
|
|
|
|
|
|
const Duct& getDuct(const TaSystem&) const;
|
|
|
|
|
2016-12-29 18:06:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // DUCTBC_H
|
|
|
|
//////////////////////////////////////////////////////////////////////
|