Skip to content

Commit

Permalink
remove holdup writing
Browse files Browse the repository at this point in the history
  • Loading branch information
malihass committed Dec 7, 2024
1 parent 2265815 commit 508424a
Showing 1 changed file with 1 addition and 28 deletions.
29 changes: 1 addition & 28 deletions tutorial_cases/bubble_column_20L/system/controlDict
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ functions
fieldAverage
{
type fieldAverage;
libs (fieldFunctionObjects);
libs ("libfieldFunctionObjects.so");
writeControl writeTime;
timeStart 0;
fields
Expand All @@ -75,33 +75,6 @@ functions
);
};

writeHoldup
{
type coded;
libs (utilityFunctionObjects);
active true;

// Name of on-the-fly generated functionObject
name writeHoldup;
codeWrite
#{
const volScalarField& alpha_mean = db().lookupObject<volScalarField>("alpha.gasMean");
const volScalarField& alpha = db().lookupObject<volScalarField>("alpha.gas");

scalar volume = gSum(mesh().V());
scalar gas_holdup_mean = gSum(fvc::volumeIntegrate(alpha_mean))/volume;
scalar gas_holdup = gSum(fvc::volumeIntegrate(alpha))/volume;

if (Pstream::master()){
std::ofstream file;
file.open ("holdup.csv", std::ofstream::out | std::ofstream::app);
file << mesh().time().value() << " , " << gas_holdup
<< " , " << gas_holdup_mean << std::endl;
file.close();
}
#};

};
}
//functions
//{
Expand Down

0 comments on commit 508424a

Please sign in to comment.