-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/poisson equation #50
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some quick comments. Mainly leaving some TODO notes what needs to be implemented again.
@@ -0,0 +1,7 @@ | |||
# SPDX-License-Identifier: Unlicense | |||
# | |||
# SPDX-FileCopyrightText: 2023 NeoFOAM authors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# SPDX-FileCopyrightText: 2023 NeoFOAM authors | |
# SPDX-FileCopyrightText: 2025 NeoFOAM authors |
@@ -2,3 +2,5 @@ | |||
# SPDX-FileCopyrightText: 2024 NeoFOAM authors | |||
|
|||
add_subdirectory(scalarAdvection) | |||
add_subdirectory(icoNeoFoam) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we name it neoIcoFoam
or icoNeoFoam
?
@@ -0,0 +1,7 @@ | |||
# SPDX-License-Identifier: Unlicense | |||
# | |||
# SPDX-FileCopyrightText: 2023 NeoFOAM authors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# SPDX-FileCopyrightText: 2023 NeoFOAM authors | |
# SPDX-FileCopyrightText: 2025 NeoFOAM authors |
@@ -32,17 +32,19 @@ bool checkEntryType(const Foam::entry& entry) | |||
} | |||
catch (const Foam::IOerror& ioErr) | |||
{ | |||
FatalError.throwExceptions(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe add a docstring/comment what is happening here? Also i think this can be refactored by having a return variable.
catch (const Foam::IOerror& ioErr) | ||
{ | ||
FatalError.throwExceptions(false); | ||
FatalIOError.throwExceptions(false); | ||
return false; | ||
} | ||
catch (const Foam::error& err) | ||
{ | ||
FatalError.throwExceptions(false); | ||
FatalIOError.throwExceptions(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
catch (const Foam::IOerror& ioErr) | |
{ | |
FatalError.throwExceptions(false); | |
FatalIOError.throwExceptions(false); | |
return false; | |
} | |
catch (const Foam::error& err) | |
{ | |
FatalError.throwExceptions(false); | |
FatalIOError.throwExceptions(false); | |
bool ret {true}; | |
catch (const Foam::IOerror& ioErr) | |
{ | |
ret = false; | |
} | |
catch (const Foam::error& err) | |
{ | |
ret = false; | |
} | |
FatalError.throwExceptions(false); | |
FatalIOError.throwExceptions(false); | |
return ret; | |
|
||
// NeoFOAM::Executor exec = GENERATE( | ||
// NeoFOAM::Executor(NeoFOAM::SerialExecutor {}), | ||
// NeoFOAM::Executor(NeoFOAM::CPUExecutor {}), | ||
// NeoFOAM::Executor(NeoFOAM::GPUExecutor {}) | ||
// ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// NeoFOAM::Executor exec = GENERATE( | |
// NeoFOAM::Executor(NeoFOAM::SerialExecutor {}), | |
// NeoFOAM::Executor(NeoFOAM::CPUExecutor {}), | |
// NeoFOAM::Executor(NeoFOAM::GPUExecutor {}) | |
// ); | |
// TODO: use generator | |
// NeoFOAM::Executor exec = GENERATE( | |
// NeoFOAM::Executor(NeoFOAM::SerialExecutor {}), | |
// NeoFOAM::Executor(NeoFOAM::CPUExecutor {}), | |
// NeoFOAM::Executor(NeoFOAM::GPUExecutor {}) | |
// ); |
@@ -0,0 +1,67 @@ | |||
// SPDX-License-Identifier: GPL-3.0-or-later | |||
// SPDX-FileCopyrightText: 2023 NeoFOAM authors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// SPDX-FileCopyrightText: 2023 NeoFOAM authors | |
// SPDX-FileCopyrightText: 2025 NeoFOAM authors |
#include "NeoFOAM/finiteVolume/cellCentred/operators/sparsityPattern.hpp" | ||
|
||
|
||
#include "gaussConvectionScheme.H" | ||
#include "NeoFOAM/core/input.hpp" | ||
#include "NeoFOAM/dsl/explicit.hpp" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#include "NeoFOAM/finiteVolume/cellCentred/operators/sparsityPattern.hpp" | |
#include "gaussConvectionScheme.H" | |
#include "NeoFOAM/core/input.hpp" | |
#include "NeoFOAM/dsl/explicit.hpp" | |
#include "gaussConvectionScheme.H" | |
#include "NeoFOAM/NeoFOAM.hpp" |
@@ -0,0 +1,64 @@ | |||
// SPDX-License-Identifier: GPL-3.0-or-later | |||
// SPDX-FileCopyrightText: 2023 NeoFOAM authors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// SPDX-FileCopyrightText: 2023 NeoFOAM authors | |
// SPDX-FileCopyrightText: 2025 NeoFOAM authors |
|
||
NeoFOAM::Executor exec = GENERATE(NeoFOAM::Executor(NeoFOAM::SerialExecutor {}) | ||
// NeoFOAM::Executor(NeoFOAM::CPUExecutor {}), | ||
// NeoFOAM::Executor(NeoFOAM::GPUExecutor {}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NeoFOAM::Executor exec = GENERATE(NeoFOAM::Executor(NeoFOAM::SerialExecutor {}) | |
// NeoFOAM::Executor(NeoFOAM::CPUExecutor {}), | |
// NeoFOAM::Executor(NeoFOAM::GPUExecutor {}) | |
// TODO: implement other executors again | |
NeoFOAM::Executor exec = GENERATE(NeoFOAM::Executor(NeoFOAM::SerialExecutor {}) | |
// NeoFOAM::Executor(NeoFOAM::CPUExecutor {}), | |
// NeoFOAM::Executor(NeoFOAM::GPUExecutor {}) |
Motivation
Solve the pressure Equation with icoNeoFOAM