ECOGEN 4.0
Evolutive, Compressible, Open, Genuine, Easy, N-phase
Loading...
Searching...
No Matches
PhaseNonLinearSchrodinger.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 PHASENONLINEARSCHRODINGER_H
32#define PHASENONLINEARSCHRODINGER_H
33
34#include "../EulerKorteweg/PhaseEulerKorteweg.h"
35#include "../../Eos/Eos.h"
36#include <fstream>
37
41{
42 public:
52 PhaseNonLinearSchrodinger(tinyxml2::XMLElement* material, Eos* eos, std::string fileName);
54
55 virtual void allocateAndCopyPhase(Phase** vecPhase);
56
57 //Specific methods for data printing
58 //----------------------------------
59 virtual int getNumberScalars() const { return 3; };
60
61 //Specific methods for parallel computing
62 //---------------------------------------
63 virtual int numberOfTransmittedVariables() const;
64 virtual void fillBuffer(double* buffer, int& counter) const;
65 virtual void fillBuffer(std::vector<double>& dataToSend) const;
66 virtual void getBuffer(double* buffer, int& counter, Eos** /*eos*/);
67 virtual void getBuffer(std::vector<double>& dataToReceive, int& counter, Eos** /*eos*/);
68
69 //Verifications
70 //-------------
71 virtual void verifyAndCorrectDensityMax() {};
72};
73
74#endif // PHASENONLINEARSCHRODINGER_H
General class for Equation of State (EOS).
Definition Eos.h:54
Phase variables for Augmented Euler–Korteweg equations (single phase)
Definition PhaseEulerKorteweg.h:41
Phase variables for Augmented Euler–Korteweg equations (single phase)
Definition PhaseNonLinearSchrodinger.h:41
virtual void fillBuffer(double *buffer, int &counter) const
Definition PhaseNonLinearSchrodinger.cpp:68
virtual int getNumberScalars() const
Definition PhaseNonLinearSchrodinger.h:59
virtual ~PhaseNonLinearSchrodinger()
Definition PhaseNonLinearSchrodinger.cpp:47
PhaseNonLinearSchrodinger()
Definition PhaseNonLinearSchrodinger.cpp:38
virtual void verifyAndCorrectDensityMax()
Definition PhaseNonLinearSchrodinger.h:71
virtual int numberOfTransmittedVariables() const
Definition PhaseNonLinearSchrodinger.cpp:60
virtual void allocateAndCopyPhase(Phase **vecPhase)
Copy phase attributes in phase.
Definition PhaseNonLinearSchrodinger.cpp:51
virtual void getBuffer(double *buffer, int &counter, Eos **)
Definition PhaseNonLinearSchrodinger.cpp:102
Abstract class for a phase.
Definition Phase.h:47
Definition tinyxml2.h:1149