From 94d3e79a8617f88dc0219cfdeedfa3147833719d Mon Sep 17 00:00:00 2001
From: Adrian Kummerlaender
Date: Mon, 24 Jun 2019 14:43:36 +0200
Subject: Initialize at openlb-1-3
---
.../advectionDiffusionMomentaOnBoundaries.h | 80 ++++++++++++++++++++++
1 file changed, 80 insertions(+)
create mode 100644 src/boundary/advectionDiffusionMomentaOnBoundaries.h
(limited to 'src/boundary/advectionDiffusionMomentaOnBoundaries.h')
diff --git a/src/boundary/advectionDiffusionMomentaOnBoundaries.h b/src/boundary/advectionDiffusionMomentaOnBoundaries.h
new file mode 100644
index 0000000..7d33c0b
--- /dev/null
+++ b/src/boundary/advectionDiffusionMomentaOnBoundaries.h
@@ -0,0 +1,80 @@
+/* This file is part of the OpenLB library
+ *
+ * Copyright (C) 2006, 2007 Jonas Latt
+ * E-mail contact: info@openlb.net
+ * The most recent release of OpenLB can be downloaded at
+ *
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program 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.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+*/
+
+/** \file
+ * Implementation of boundary cell dynamics -- header file.
+ */
+#ifndef ADE_MOMENTA_ON_BOUNDARIES_H
+#define ADE_MOMENTA_ON_BOUNDARIES_H
+
+#include "dynamics/dynamics.h"
+#include "dynamics/advectionDiffusionMomenta.h"
+#include "core/util.h"
+#include "core/cell.h"
+
+namespace olb {
+
+/// Computation of velocity momenta on a velocity boundary
+template
+class AdvectionDiffusionBoundaryMomenta : virtual public AdvectionDiffusionBulkMomenta {
+public:
+ virtual void computeJneq( Cell const& cell, T jNeq[DESCRIPTOR::d] ) const =0;
+};
+
+/// Computation of velocity momenta on a velocity boundary
+template
+class RegularizedTemperatureBM : public AdvectionDiffusionBoundaryMomenta {
+public:
+ /// Default Constructor: initialization to u=0, rho=1
+ RegularizedTemperatureBM(const T temperature = 0.5);
+
+ T computeRho(Cell const& cell) const override;
+ void computeJ( Cell const& cell, T j[DESCRIPTOR::d] ) const override;
+ void computeJneq( Cell const& cell, T jNeq[DESCRIPTOR::d] ) const override;
+ void defineRho(Cell& cell, T rho) override;
+ void defineRhoU (Cell& cell, T rho, const T u[DESCRIPTOR::d]) override;
+private:
+ T _temperature;
+};
+
+
+/// Computation of velocity momenta on a velocity boundary
+template
+class RegularizedHeatFluxBM : public AdvectionDiffusionBoundaryMomenta {
+public:
+ /// Default Constructor: initialization to u=0, rho=1
+ RegularizedHeatFluxBM(T *heatFlux = nullptr);
+
+ T computeRho(Cell const& cell) const override;
+ void computeJ( Cell const& cell, T j[DESCRIPTOR::d] ) const override;
+ void computeJneq( Cell const& cell, T jNeq[DESCRIPTOR::d] ) const override;
+private:
+ T _heatFlux[DESCRIPTOR::d];
+};
+
+
+} // namespace olb
+
+
+#endif
+
--
cgit v1.2.3