|
[Sponsors] |
How to read multiphase parameters in creatFields from Transportproperties ? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 5, 2018, 09:22 |
How to read multiphase parameters in creatFields from Transportproperties ?
|
#1 |
New Member
Amir
Join Date: Mar 2018
Posts: 3
Rep Power: 8 |
Hi,
I wrote a new code for Compressible LcmFoam which actually is improved version of LcmFoam for compressible flows. But i have an issue with my phases and parameters , if i give my parameters in creatFields , everything is fine and the solver works properly, but i want to read the parameters from my Transportproperties for multi-phase parameters. So the question is: I only have 2 of my parameters from Transportproperties (rho1 , rho2) but i need in my createFields to read the other parameters as well, such as (nu1, nu2) and speed of sound (C_Sound) and etc. can anyone help me what would be the command for that ? My Transportproperties would be the following: /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 4.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "constant"; object transportProperties; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // phases (resin air); resin { transportModel Newtonian; nu [0 2 -1 0 0 0 0] 297e-7; rho [1 -3 0 0 0 0 0] 1110; } air { transportModel Newtonian; nu [0 2 -1 0 0 0 0] 14.5e-06; rho [1 -3 0 0 0 0 0] 1; } sigma [1 0 -2 0 0 0 0] 0.0; // ************************************************** *********************** // With best regards Amirhossein |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Commercial meshers] fluentMeshToFoam multidomain mesh conversion problem | Attesz | OpenFOAM Meshing & Mesh Conversion | 12 | May 2, 2013 10:52 |
Parameters for multigrid solver | HaZe | OpenFOAM Running, Solving & CFD | 3 | January 28, 2012 02:05 |
999999 (../../src/mpsystem.c@1123):mpt_read: failed:errno = 11 | UDS_rambler | FLUENT | 2 | November 22, 2011 09:46 |
Problem in running ICEM grid in Openfoam | Tarak | OpenFOAM | 6 | September 9, 2011 17:51 |
Phase locked average in run time | panara | OpenFOAM | 2 | February 20, 2008 14:37 |