|
[Sponsors] |
November 2, 2016, 11:36 |
Herschel-Bulkley in OpenFOAM
|
#1 |
Member
Felice
Join Date: Nov 2010
Posts: 44
Rep Power: 15 |
To whom it may concern,
I'm trying to simulate fresh concrete with OF using the Herschel-Bulkley model. I have following parameters from literature: tau0 [Pa] a [Pa*s^b] B [-] 1804 111 1,23 so in OF (the density is 1400Kg/m^3) I will have tau0 [Pa]/[Kg/m^3] k [Pa*s^b]/[Kg/m^3] n [-] 1,288 0,079 1,23 Correct? But then there is another parameter nu0. Now according to some suggestion I should set nu0 to a very high value. Is it correct? If I have correctly understood the solver, it uses the minimum value between the provided nu0 and the value calculated according to Herschel-bulkley model as nu=[tau0+k(gammap^n-(tau0/mu0)^n)]/gammap Is it correct? So if I set nu0 to 0.008, the calculated nu file in each folder appears as /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.3.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format binary; class volScalarField; location "67"; object nu; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 2 -1 0 0 0 0]; internalField uniform 0.008; boundaryField { patches_name { type calculated; value uniform 0.008; } etc. } I presume that nu is calculated using nu0. If I set nu0 to 100 (high value), I get forces of a wrong order of magnitude smoothSolver: Solving for Ux, Initial residual = 0.665612, Final residual = 2.48012e-05, No Iterations 25 smoothSolver: Solving for Uy, Initial residual = 0.559982, Final residual = 1.92865e-05, No Iterations 25 smoothSolver: Solving for Uz, Initial residual = 0.649273, Final residual = 2.05462e-05, No Iterations 25 GAMG: Solving for p, Initial residual = 0.461244, Final residual = 0.0335985, No Iterations 4 GAMG: Solving for p, Initial residual = 0.0031342, Final residual = 0.000248612, No Iterations 1 GAMG: Solving for p, Initial residual = 0.000523932, Final residual = 3.57448e-05, No Iterations 2 GAMG: Solving for p, Initial residual = 0.000134293, Final residual = 8.17402e-06, No Iterations 2 GAMG: Solving for p, Initial residual = 2.77999e-05, Final residual = 2.03199e-06, No Iterations 2 GAMG: Solving for p, Initial residual = 7.14375e-06, Final residual = 5.00659e-07, No Iterations 2 time step continuity errors : sum local = 2.7234, global = 0.172896, cumulative = 0.240496 smoothSolver: Solving for epsilon, Initial residual = 0.171581, Final residual = 1.73496e-14, No Iterations 25 bounding epsilon, min: -1.11366e+06 max: 2.27262e+08 average: 1.60725e+06 smoothSolver: Solving for k, Initial residual = 0.948208, Final residual = 2.28427e-11, No Iterations 25 ExecutionTime = 53.45 s ClockTime = 54 s forces valveForces output: sum of forces: pressure : (-90485.8 -1.47324e+09 1.52142e+09) viscous : (-411.764 216421 -521637) porous : (0 0 0) sum of moments: pressure : (1.18322e+08 -1.52143e+07 -1.47032e+07) viscous : (-34016.4 5146.98 2233.21) porous : (0 0 0) and the calculated nu file appears like /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.3.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format binary; class volScalarField; location "1"; object nu; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 2 -1 0 0 0 0]; internalField nonuniform List<scalar> 1606466 ([{i¾$ñ?SMö?ì"î(ð?¯DÅlá? pÛASá?ÿ... etc. I think this is because the numbers are to high... but where I'm wrong? What in the settings should be changed? Thanks Franco |
|
December 1, 2016, 01:18 |
|
#2 |
New Member
|
Maybe I'm wrong, but I think the force coefficients calculation is not implemented for varied nu. You have to check how OpenFOAM is calculating the coefficients in the source code. Cheers
|
|
December 2, 2016, 03:12 |
|
#3 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
i guess you see weird number, because u save data in binary format , go to controlDict and change write format from binary to ascii to see the correct number
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Frequently Asked Questions about Installing OpenFOAM | wyldckat | OpenFOAM Installation | 3 | November 14, 2023 12:58 |
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 | cfd.direct | OpenFOAM Announcements from Other Sources | 2 | August 31, 2015 14:36 |
OpenFOAM Foundation releases OpenFOAM 2.2.2 | opencfd | OpenFOAM Announcements from ESI-OpenCFD | 0 | October 14, 2013 08:18 |
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 | wyldckat | OpenFOAM Announcements from Other Sources | 3 | September 8, 2010 07:25 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |