ECOGEN 4.0
Evolutive, Compressible, Open, Genuine, Easy, N-phase
Loading...
Searching...
No Matches
ModNonLinearSchrodinger.h
Go to the documentation of this file.
1//
2// ,---. ,--, .---. ,--, ,---. .-. .-.
3// | .-' .' .') / .-. ) .' .' | .-' | \| |
4// | `-. | |(_) | | |(_) | | __ | `-. | | |
5// | .-' \ \ | | | | \ \ ( _) | .-' | |\ |
6// | `--. \ `-. \ `-' / \ `-) ) | `--. | | |)|
7// /( __.' \____\ )---' )\____/ /( __.' /( (_)
8// (__) (_) (__) (__) (__)
9// Official webSite: https://code-mphi.github.io/ECOGEN/
10//
11// This file is part of ECOGEN.
12//
13// ECOGEN is the legal property of its developers, whose names
14// are listed in the copyright file included with this source
15// distribution.
16//
17// ECOGEN is free software: you can redistribute it and/or modify
18// it under the terms of the GNU General Public License as published
19// by the Free Software Foundation, either version 3 of the License,
20// or (at your option) any later version.
21//
22// ECOGEN is distributed in the hope that it will be useful,
23// but WITHOUT ANY WARRANTY; without even the implied warranty of
24// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25// GNU General Public License for more details.
26//
27// You should have received a copy of the GNU General Public License
28// along with ECOGEN (file LICENSE).
29// If not, see <http://www.gnu.org/licenses/>.
30
31#ifndef MODNONLINEARSCHRODINGER_H
32#define MODNONLINEARSCHRODINGER_H
33
34#include "../Model.h"
35#include "../EulerKorteweg/ModEulerKorteweg.h"
36#include "../../Order1/Cell.h"
39
43{
44 public:
49 ModNonLinearSchrodinger(const int& numbTransports, const double& alpha, const double &beta);
51
52 virtual void allocateCons(Flux** cons);
53 virtual void allocatePhase(Phase** phase);
54 virtual void allocateMixture(Mixture** mixture);
55
56 //Methods specific to Euler-Korteweg
57 //----------------------------------
58 virtual double kappa(const double& density) const;
59 virtual double kappaPrime(const double& density) const;
60 virtual double kappaSecond(const double& density) const;
61 virtual double epsilonPrime(Cell& /*cell*/, const double& /*density*/) const;
62 virtual double epsilonSecond(Cell& /*cell*/, const double& /*density*/) const;
63
64 private:
65 static const std::string NAME;
66};
67
68#endif // MODNONLINEARSCHRODINGER_H
Base class for a mesh cell.
Definition Cell.h:59
Abstract class for conservative variables and fluxes.
Definition Flux.h:43
Abstract class for mixture variables.
Definition Mixture.h:43
Model class for Augmented Euler–Korteweg mathematical system of equations (single phase)
Definition ModEulerKorteweg.h:42
Model class for Non-Linear Schrodinger mathematical system of equations (single phase)
Definition ModNonLinearSchrodinger.h:43
virtual double epsilonSecond(Cell &, const double &) const
Definition ModNonLinearSchrodinger.cpp:102
virtual void allocatePhase(Phase **phase)
Instanciate fluid phase variable.
Definition ModNonLinearSchrodinger.cpp:60
virtual double epsilonPrime(Cell &, const double &) const
Definition ModNonLinearSchrodinger.cpp:95
virtual void allocateCons(Flux **cons)
Allocate conservative variable arrays.
Definition ModNonLinearSchrodinger.cpp:53
virtual ~ModNonLinearSchrodinger()
Definition ModNonLinearSchrodinger.cpp:49
static const std::string NAME
Definition ModNonLinearSchrodinger.h:65
virtual void allocateMixture(Mixture **mixture)
Instanciate mixture variable.
Definition ModNonLinearSchrodinger.cpp:67
virtual double kappaPrime(const double &density) const
Definition ModNonLinearSchrodinger.cpp:81
virtual double kappa(const double &density) const
Definition ModNonLinearSchrodinger.cpp:74
virtual double kappaSecond(const double &density) const
Definition ModNonLinearSchrodinger.cpp:88
Abstract class for a phase.
Definition Phase.h:47