timedomainresonace/src/tube.h

31 lines
710 B
C
Raw Normal View History

2014-11-11 08:31:13 +00:00
#pragma once
#ifndef _TUBE_H_
#define _TUBE_H_
#include "geom.h"
#include "globalconf.h"
#include "solution.h"
2015-01-27 09:00:35 +00:00
2014-11-11 08:31:13 +00:00
namespace td{
2015-01-27 09:00:35 +00:00
extern tasystem::Globalconf gc;
2014-11-11 08:31:13 +00:00
class Tube{
2015-01-27 09:00:35 +00:00
d dx,L; // Grid spacing, total length
int gp; // Number of gridpoints
SolutionInstance sol; // Solutions at time instances
d t=0; // Current time
d pleft(d t); // Compute pressure bc
2014-11-11 08:31:13 +00:00
public:
2015-01-27 09:00:35 +00:00
Tube(d L,int gp);
SolutionInstance& getSol() { return sol;}
void setSol(const SolutionInstance& sol) {this->sol=sol;}
void DoIntegration(d dt);
d getTime(){return t;}
};
2014-11-11 08:31:13 +00:00
} // namespace td
#endif /* _TUBE_H_ */