From 6c4fffcf4e451624eee5eef921ed24a15b4ed021 Mon Sep 17 00:00:00 2001 From: RevathiJambunathan Date: Mon, 9 Sep 2024 11:05:06 -0700 Subject: [PATCH] renaming BoundaryHandler to PoissonBoundaryHandler, defining new base class ES and derived ExplicitES --- .../ElectrostaticSolver.H | 23 +++++++++++++++++++ .../ElectrostaticSolver.cpp | 7 ++++++ .../ElectrostaticSolvers/ExplicitES.H | 6 +++++ ...daryHandler.H => PoissonBoundaryHandler.H} | 0 ...Handler.cpp => PoissonBoundaryHandler.cpp} | 0 5 files changed, 36 insertions(+) create mode 100644 Source/FieldSolver/ElectrostaticSolvers/ElectrostaticSolver.H create mode 100644 Source/FieldSolver/ElectrostaticSolvers/ElectrostaticSolver.cpp create mode 100644 Source/FieldSolver/ElectrostaticSolvers/ExplicitES.H rename Source/FieldSolver/ElectrostaticSolvers/{BoundaryHandler.H => PoissonBoundaryHandler.H} (100%) rename Source/FieldSolver/ElectrostaticSolvers/{BoundaryHandler.cpp => PoissonBoundaryHandler.cpp} (100%) diff --git a/Source/FieldSolver/ElectrostaticSolvers/ElectrostaticSolver.H b/Source/FieldSolver/ElectrostaticSolvers/ElectrostaticSolver.H new file mode 100644 index 00000000000..7f44112c615 --- /dev/null +++ b/Source/FieldSolver/ElectrostaticSolvers/ElectrostaticSolver.H @@ -0,0 +1,23 @@ +/* Copyright 2024 Roelof Groenwald, Arriana Formenti, Revathi Jambunathan + * + * This file is part of WarpX. + * + * License: BSD-3-Clause-LBNL + */ +#ifndef Electrostatic_Solver_H_ +#define Electrostatic_Solver_H_ + +class ElectrostaticSolver +{ + public: + + ElectrostaticSolver() = default; + + ComputeRHS() = default; + + PoissonBoundaryHandler m_poissonboundaryhandler; + +} + +#endif + diff --git a/Source/FieldSolver/ElectrostaticSolvers/ElectrostaticSolver.cpp b/Source/FieldSolver/ElectrostaticSolvers/ElectrostaticSolver.cpp new file mode 100644 index 00000000000..47ceafb3145 --- /dev/null +++ b/Source/FieldSolver/ElectrostaticSolvers/ElectrostaticSolver.cpp @@ -0,0 +1,7 @@ +#include "ElectrostaticSolver.H" +#include "PoissonBoundaryHandler.H" + +ElectrostaticSolver::ElectrostaticSolver () +{ + m_boundaryhandler = std::make_unique(); +} diff --git a/Source/FieldSolver/ElectrostaticSolvers/ExplicitES.H b/Source/FieldSolver/ElectrostaticSolvers/ExplicitES.H new file mode 100644 index 00000000000..10881b7f0ea --- /dev/null +++ b/Source/FieldSolver/ElectrostaticSolvers/ExplicitES.H @@ -0,0 +1,6 @@ +#include "ElectrostaticSolver.H" + +class ExplicitES () : public ElectrostaticSolver +{ + +} diff --git a/Source/FieldSolver/ElectrostaticSolvers/BoundaryHandler.H b/Source/FieldSolver/ElectrostaticSolvers/PoissonBoundaryHandler.H similarity index 100% rename from Source/FieldSolver/ElectrostaticSolvers/BoundaryHandler.H rename to Source/FieldSolver/ElectrostaticSolvers/PoissonBoundaryHandler.H diff --git a/Source/FieldSolver/ElectrostaticSolvers/BoundaryHandler.cpp b/Source/FieldSolver/ElectrostaticSolvers/PoissonBoundaryHandler.cpp similarity index 100% rename from Source/FieldSolver/ElectrostaticSolvers/BoundaryHandler.cpp rename to Source/FieldSolver/ElectrostaticSolvers/PoissonBoundaryHandler.cpp