ODESolver.cpp 1.27 KB
Newer Older
1
/**
Weichen's avatar
Weichen committed
2 3
 * \file        ODESolver.cpp
 * \date        Aug 17, 2010
4 5
 * \version     v0.7
 * \copyright   <2009-2015> Forschungszentrum Jülich GmbH. All rights reserved.
Ulrich Kemloh's avatar
Ulrich Kemloh committed
6
 *
Weichen's avatar
Weichen committed
7
 * \section License
8 9 10
 * This file is part of JuPedSim.
 *
 * JuPedSim is free software: you can redistribute it and/or modify
Weichen's avatar
Weichen committed
11
 * it under the terms of the GNU Lesser General Public License as published by
12 13 14 15 16 17 18 19
 * the Free Software Foundation, either version 3 of the License, or
 * any later version.
 *
 * JuPedSim is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
Weichen's avatar
Weichen committed
20
 * You should have received a copy of the GNU Lesser General Public License
21 22
 * along with JuPedSim. If not, see <http://www.gnu.org/licenses/>.
 *
Weichen's avatar
Weichen committed
23
 * \section Description
24 25
 *
 *
Weichen's avatar
Weichen committed
26
 **/
Ulrich Kemloh's avatar
Ulrich Kemloh committed
27 28 29


#include "ODESolver.h"
30 31 32 33 34
#include "ForceModel.h"
#include "../geometry/Building.h"
#include "../pedestrian/Pedestrian.h"

using namespace std;
Ulrich Kemloh's avatar
Ulrich Kemloh committed
35

36
ODESolver::ODESolver(ForceModel *tmodel) : model(tmodel)
37
{
Ulrich Kemloh's avatar
Ulrich Kemloh committed
38 39 40

}

Ulrich Kemloh's avatar
Ulrich Kemloh committed
41

42
EulerSolver::EulerSolver(ForceModel *tmodel) : ODESolver(tmodel)
43
{
Ulrich Kemloh's avatar
Ulrich Kemloh committed
44 45 46

}

47 48
void EulerSolver::solveODE(double ti, double tip1, Building* building) const
{
Ulrich Kemloh's avatar
Ulrich Kemloh committed
49
    model->CalculateForce(ti, tip1, building);
Ulrich Kemloh's avatar
Ulrich Kemloh committed
50
}