Two drops coalescing on substrate not conserving volume
Hi All
Can you help with the following issue? Version: OpenFOAM 6 on Ubuntu 18.04 interFoam Simulation: two water drops on a substrate coalescing Issue: the drops are falling right through the substrate (-z direction). What am I missing? My blockMesh is here Code:
/*--------------------------------*- C++ -*----------------------------------*\ Code:
/*--------------------------------*- C++ -*----------------------------------*\ Code:
/*--------------------------------*- C++ -*----------------------------------*\ Code:
/*--------------------------------*- C++ -*----------------------------------*\ |
Nevermind I'm an idiot. Was setting the wrong plane as the wall in blockMeshDict. Please ignore
|
Hello joshmckraney! Even though this post is from long ago, would you please help me on how to simulate two droplets using OpenFOAM? Currently I'm able to simulate one droplet with setFields and setAlphaField, but not two. Thank you beforehand!
|
Quote:
|
Quote:
setFieldsDict: /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: plus | | \\ / A nd | Web: www.OpenFOAM.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object setFieldsDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // defaultFieldValues ( volScalarFieldValue alpha.phase1 0 ); regions ( // Droplet 1 cylinderToCell { p1 (0.5 0.5 -1); p2 (0.5 0.5 1); radius 0.1; fieldValues ( volScalarFieldValue alpha.phase1 1 ); } // Droplet 2 cylinderToCell { p1 (1.5 0.5 -1); p2 (1.5 0.5 1); radius 0.1; fieldValues ( volScalarFieldValue alpha.phase1 1 ); } ); // ************************************************** *********************** // setAlphaFieldDict: /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: plus | | \\ / A nd | Web: www.OpenFOAM.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object fvSolution; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // field alpha.phase1; type cylinder; radius 0.1; direction (0 0 1); origin (0.5 0.5 0); field alpha.phase1; type cylinder; radius 0.1; direction (0 0 1); origin (1.5 0.5 0); // ************************************************** *********************** // |
Quote:
|
Quote:
I'll try that and come back to report. Thank you! |
Hello! I have solved my issue, so I want to put it here in case someone else ever find this problem. Running the command twice didn't work: when I ran the second time, the first droplet would be erased, as if it was the first time the command was ran. Ultimately, I stopped using "setAlphaField" and it works just fine using only the "setFields" command. I am not sure why it didn't work before, and I'm not sure why it is working now, but it is! Thank you :)
|
Quote:
|
All times are GMT -4. The time now is 19:28. |