diff --git a/src/cpu/VirtualFluidsCore/CoProcessors/MPIIOMigrationBECoProcessor.cpp b/src/cpu/VirtualFluidsCore/CoProcessors/MPIIOMigrationBECoProcessor.cpp index 42166cb6025a7ce27ca684a42f9c4f226119208c..8e1aa0f522a783dba8a006ab31db53fb6baa7655 100644 --- a/src/cpu/VirtualFluidsCore/CoProcessors/MPIIOMigrationBECoProcessor.cpp +++ b/src/cpu/VirtualFluidsCore/CoProcessors/MPIIOMigrationBECoProcessor.cpp @@ -692,6 +692,7 @@ void MPIIOMigrationBECoProcessor::writeBoundaryConds(int step) bouCond->bcVelocityX2 = (float)bcArr->bcvector[bc]->getBoundaryVelocityX2(); bouCond->bcVelocityX3 = (float)bcArr->bcvector[bc]->getBoundaryVelocityX3(); bouCond->bcDensity = (float)bcArr->bcvector[bc]->getBoundaryDensity(); + bouCond->bcPhaseField = (float)bcArr->bcvector[bc]->getBoundaryPhaseField(); bouCond->nx1 = (float)bcArr->bcvector[bc]->nx1; bouCond->nx2 = (float)bcArr->bcvector[bc]->nx2; bouCond->nx3 = (float)bcArr->bcvector[bc]->nx3; @@ -1638,6 +1639,7 @@ void MPIIOMigrationBECoProcessor::readBoundaryConds(int step) bc->bcVelocityX2 = bcArray[ibc].bcVelocityX2; bc->bcVelocityX3 = bcArray[ibc].bcVelocityX3; bc->bcDensity = bcArray[ibc].bcDensity; + bc->bcPhaseField = bcArray[ibc].bcPhaseField; bc->nx1 = bcArray[ibc].nx1; bc->nx2 = bcArray[ibc].nx2; diff --git a/src/cpu/VirtualFluidsCore/CoProcessors/MPIIOMigrationCoProcessor.cpp b/src/cpu/VirtualFluidsCore/CoProcessors/MPIIOMigrationCoProcessor.cpp index bbf2a2c5023da0f1d3ccfc892ea66b6aabd47a61..7992bc08f1a9afaed8eba5d4f3d96c1137cbf89f 100644 --- a/src/cpu/VirtualFluidsCore/CoProcessors/MPIIOMigrationCoProcessor.cpp +++ b/src/cpu/VirtualFluidsCore/CoProcessors/MPIIOMigrationCoProcessor.cpp @@ -777,6 +777,7 @@ void MPIIOMigrationCoProcessor::writeBoundaryConds(int step) bouCond->bcVelocityX2 = (float)bcArr->bcvector[bc]->getBoundaryVelocityX2(); bouCond->bcVelocityX3 = (float)bcArr->bcvector[bc]->getBoundaryVelocityX3(); bouCond->bcDensity = (float)bcArr->bcvector[bc]->getBoundaryDensity(); + bouCond->bcPhaseField = (float)bcArr->bcvector[bc]->getBoundaryPhaseField(); bouCond->nx1 = (float)bcArr->bcvector[bc]->nx1; bouCond->nx2 = (float)bcArr->bcvector[bc]->nx2; bouCond->nx3 = (float)bcArr->bcvector[bc]->nx3; @@ -1459,6 +1460,7 @@ void MPIIOMigrationCoProcessor::readBoundaryConds(int step) bc->bcVelocityX2 = bcArray[ibc].bcVelocityX2; bc->bcVelocityX3 = bcArray[ibc].bcVelocityX3; bc->bcDensity = bcArray[ibc].bcDensity; + bc->bcPhaseField = bcArray[ibc].bcPhaseField; bc->nx1 = bcArray[ibc].nx1; bc->nx2 = bcArray[ibc].nx2; diff --git a/src/cpu/VirtualFluidsCore/CoProcessors/MPIIORestartCoProcessor.cpp b/src/cpu/VirtualFluidsCore/CoProcessors/MPIIORestartCoProcessor.cpp index 02537d7399b3fcf4f5c4206f34adfbc5547f99b9..4f7abd24116767d3fc73cedb6399d0bfbf4e0ace 100644 --- a/src/cpu/VirtualFluidsCore/CoProcessors/MPIIORestartCoProcessor.cpp +++ b/src/cpu/VirtualFluidsCore/CoProcessors/MPIIORestartCoProcessor.cpp @@ -1489,6 +1489,7 @@ void MPIIORestartCoProcessor::writeBoundaryConds(int step) bouCond->bcVelocityX2 = (float)bcArr->bcvector[bc]->getBoundaryVelocityX2(); bouCond->bcVelocityX3 = (float)bcArr->bcvector[bc]->getBoundaryVelocityX3(); bouCond->bcDensity = (float)bcArr->bcvector[bc]->getBoundaryDensity(); + bouCond->bcPhaseField = (float)bcArr->bcvector[bc]->getBoundaryPhaseField(); bouCond->nx1 = (float)bcArr->bcvector[bc]->nx1; bouCond->nx2 = (float)bcArr->bcvector[bc]->nx2; bouCond->nx3 = (float)bcArr->bcvector[bc]->nx3; @@ -2699,6 +2700,7 @@ void MPIIORestartCoProcessor::readBoundaryConds(int step) bc->bcVelocityX2 = bcArray[index].bcVelocityX2; bc->bcVelocityX3 = bcArray[index].bcVelocityX3; bc->bcDensity = bcArray[index].bcDensity; + bc->bcPhaseField = bcArray[ibc].bcPhaseField; bc->nx1 = bcArray[index].nx1; bc->nx2 = bcArray[index].nx2; diff --git a/src/cpu/VirtualFluidsCore/Parallel/MPIIODataStructures.h b/src/cpu/VirtualFluidsCore/Parallel/MPIIODataStructures.h index b79006be678bdb91e684888d2485e34b5a9784d9..74627f6181cd02002e2bc2c7a2d284ff288f3c59 100644 --- a/src/cpu/VirtualFluidsCore/Parallel/MPIIODataStructures.h +++ b/src/cpu/VirtualFluidsCore/Parallel/MPIIODataStructures.h @@ -117,6 +117,7 @@ struct BoundaryCondition { float bcVelocityX2; float bcVelocityX3; float bcDensity; + float bcPhaseField; float nx1, nx2, nx3; float q[26];