Skip to content

Commit 508424a

Browse files
committed
remove holdup writing
1 parent 2265815 commit 508424a

1 file changed

Lines changed: 1 addition & 28 deletions

File tree

tutorial_cases/bubble_column_20L/system/controlDict

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ functions
6161
fieldAverage
6262
{
6363
type fieldAverage;
64-
libs (fieldFunctionObjects);
64+
libs ("libfieldFunctionObjects.so");
6565
writeControl writeTime;
6666
timeStart 0;
6767
fields
@@ -75,33 +75,6 @@ functions
7575
);
7676
};
7777

78-
writeHoldup
79-
{
80-
type coded;
81-
libs (utilityFunctionObjects);
82-
active true;
83-
84-
// Name of on-the-fly generated functionObject
85-
name writeHoldup;
86-
codeWrite
87-
#{
88-
const volScalarField& alpha_mean = db().lookupObject<volScalarField>("alpha.gasMean");
89-
const volScalarField& alpha = db().lookupObject<volScalarField>("alpha.gas");
90-
91-
scalar volume = gSum(mesh().V());
92-
scalar gas_holdup_mean = gSum(fvc::volumeIntegrate(alpha_mean))/volume;
93-
scalar gas_holdup = gSum(fvc::volumeIntegrate(alpha))/volume;
94-
95-
if (Pstream::master()){
96-
std::ofstream file;
97-
file.open ("holdup.csv", std::ofstream::out | std::ofstream::app);
98-
file << mesh().time().value() << " , " << gas_holdup
99-
<< " , " << gas_holdup_mean << std::endl;
100-
file.close();
101-
}
102-
#};
103-
104-
};
10578
}
10679
//functions
10780
//{

0 commit comments

Comments
 (0)