24#ifndef SALINITYTRANSPORT_H
25#define SALINITYTRANSPORT_H
27#include <meteoio/MeteoIO.h>
49 std::vector<double>
dz_;
55 std::vector<double>
D;
56 std::vector<double>
sb;
63 void SetDomainSize(
size_t nE);
64 size_t NumberOfElements;
This module contains the solver for the diffusion-advection equation for the transport of salinity.
Definition: SalinityTransport.h:34
std::vector< double > flux_up_2
Definition: SalinityTransport.h:47
bool SolveSalinityTransportEquationExplicit(const double dt, std::vector< double > &DeltaSal)
Solve diffusion-advection equation using the upwind explicit method .
Definition: SalinityTransport.cc:368
std::vector< double > dz_down
Definition: SalinityTransport.h:51
std::vector< double > D
Definition: SalinityTransport.h:55
std::vector< double > sb
Definition: SalinityTransport.h:56
double TopSalFlux
Definition: SalinityTransport.h:60
bool VerifyImplicitDt(const double dt)
Check for Implicit criterion .
Definition: SalinityTransport.cc:477
std::vector< double > theta2
Definition: SalinityTransport.h:53
std::vector< double > dz_up
Definition: SalinityTransport.h:50
SalinityTransport(size_t nE)
Class for solving diffusion-advection equation for salinity using the Crank-Nicolson implicit method ...
Definition: SalinityTransport.cc:68
double BottomSalinity
Definition: SalinityTransport.h:58
std::vector< double > theta1
Definition: SalinityTransport.h:52
std::vector< double > dz_
Definition: SalinityTransport.h:49
double BottomSalFlux
Definition: SalinityTransport.h:60
std::vector< double > BrineSal
Definition: SalinityTransport.h:54
double TopSalinity
Definition: SalinityTransport.h:58
std::vector< double > flux_down_2
Definition: SalinityTransport.h:48
SalinityTransportSolvers
Definition: SalinityTransport.h:43
@ IMPLICIT2
Definition: SalinityTransport.h:43
@ EXPLICIT
Definition: SalinityTransport.h:43
@ IMPLICIT
Definition: SalinityTransport.h:43
bool SolveSalinityTransportEquationImplicit(const double dt, std::vector< double > &DeltaSal, const double f, const bool DonorCell=true)
Solve diffusion-advection equation using the Crank-Nicolson implicit, or fully implicit method .
Definition: SalinityTransport.cc:119
std::vector< double > flux_down
Definition: SalinityTransport.h:46
bool VerifyCFL(const double dt)
Check for CFL criterion .
Definition: SalinityTransport.cc:453
std::vector< double > flux_up
Definition: SalinityTransport.h:45