aboutsummaryrefslogtreecommitdiff
path: root/code/fineCoupler2d.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'code/fineCoupler2d.cpp')
-rw-r--r--code/fineCoupler2d.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/code/fineCoupler2d.cpp b/code/fineCoupler2d.cpp
new file mode 100644
index 0000000..4cde254
--- /dev/null
+++ b/code/fineCoupler2d.cpp
@@ -0,0 +1,15 @@
+template <typename T, template<typename> class DESCRIPTOR>
+class FineCoupler2D : public Coupler2D<T,DESCRIPTOR> {
+private:
+ std::vector<T> _c2f_rho;
+ std::vector<Vector<T,2>> _c2f_u;
+ std::vector<Vector<T,DESCRIPTOR<T>::q>> _c2f_fneq;
+
+public:
+ FineCoupler2D(Grid2D<T,DESCRIPTOR>& coarse, Grid2D<T,DESCRIPTOR>& fine,
+ Vector<T,2> origin, Vector<T,2> extend);
+
+ void store();
+ void interpolate();
+ void couple();
+};