00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
#ifndef OPENCAL_PRESSUREFORCE_H
00012
#define OPENCAL_PRESSUREFORCE_H
00013
00014
00015
#include <OpenCAL/global.h>
00016
#include <OpenCAL/Force.h>
00017
00018
00019
namespace OpenCAL
00020 {
00021
00022
class BalloonMesh;
00023
00027 class OPENCAL_API PressureForce:
public Force
00028 {
00029
protected:
00030
00031
const float m_idealGasConstant;
00032 float m_numMoles;
00033 float m_temperature;
00034
00035
public:
00036
00037 PressureForce(
BalloonMesh *parent);
00038
virtual ~PressureForce();
00039
00040
00041
float getTemperature()
const {
return m_temperature; }
00042
00043
00044
void setTemperature(
float temperature) { m_temperature = temperature; }
00045
00046
00047
void execute(
float seconds);
00048
00049
protected:
00050
00051
float calculateVolume();
00052 };
00053 }
00054
00055
#endif // OPENCAL_PRESSUREFORCE_H