Skip to content

Commit

Permalink
Set oxide regrowth Dim 2
Browse files Browse the repository at this point in the history
  • Loading branch information
tobre1 committed Nov 6, 2023
1 parent 099b890 commit 8f106e5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
9 changes: 6 additions & 3 deletions Examples/OxideRegrowth/OxideRegrowth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ int main(int argc, char **argv) {
using NumericType = double;

omp_set_num_threads(12);
constexpr int D = 3;
constexpr int D = 2;

psLogger::setLogLevel(psLogLevel::INTERMEDIATE);

Expand Down Expand Up @@ -49,8 +49,11 @@ int main(int argc, char **argv) {
auto &cellSet = domain->getCellSet();
cellSet->addScalarData("byproductSum", 0.);
cellSet->writeVTU("initial.vtu");
if constexpr (D == 3)
cellSet->setPeriodicBoundary({false, true, false});
if constexpr (D == 3) {
std::array<bool, D> boundaryConds = {false};
boundaryConds[1] = true;
cellSet->setPeriodicBoundary(boundaryConds);
}
// we need neighborhood information for solving the
// convection-diffusion equation on the cell set
cellSet->buildNeighborhood();
Expand Down
5 changes: 4 additions & 1 deletion Examples/OxideRegrowth/OxideRegrowth.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DIM = 3
DIM = 2

if DIM is 3:
stabFac = 0.145
Expand Down Expand Up @@ -43,10 +43,13 @@
cellSet = domain.getCellSet()
cellSet.addScalarData("byproductSum", 0.0)
cellSet.writeVTU("initial.vtu")
if DIM is 3:
cellSet.setPeriodicBoundary([False, True, False])
# we need neighborhood information for solving the
# convection-diffusion equation on the cell set
cellSet.buildNeighborhood()


# The redeposition model captures byproducts from the selective etching
# process in the cell set. The byproducts are then distributed by solving a
# convection-diffusion equation on the cell set.
Expand Down

0 comments on commit 8f106e5

Please sign in to comment.