|
[Sponsors] |
June 16, 2021, 19:30 |
How to find related source codes?
|
#1 |
New Member
ON
Join Date: Jun 2021
Posts: 6
Rep Power: 5 |
Hi foamers,
I am new to OpenFoam. To find all possible options for a parameter, I need to check the related source codes. How can I find them? For example, I would like use multiphaseEulerFoam to solve fluidized bed. In constant folders, there is a phaseProperties file, where I need to define phases. To define phase particles, I need to specify parameters, including type, diameterModel, constantCoeffs, alphaMax and residualAlpha. Code:
particles { type purePhaseModel; diameterModel constant; constantCoeffs { d 275.0e-6; // mean particle diamter } alphaMax 0.63; // maximum allowable packing fraction residualAlpha 1e-6; } Thank you very much! |
|
June 16, 2021, 20:18 |
|
#2 |
Senior Member
Join Date: Aug 2015
Posts: 494
Rep Power: 15 |
Common methods include the "banana trick" (https://openfoamwiki.net/index.php/O...de/Use_bananas) -- e.g. to see what options are available for a given model input -- and foamSearch (https://cfd.direct/openfoam/user-gui...se-management/) -- e.g. to parse through the tutorials, I'd think. Otherwise, grep/find are always your friends (e.g., grep -r inletOutlet).
Caelan
__________________
Public git repository : https://github.com/clapointe2011/public |
|
June 18, 2021, 02:14 |
|
#3 | |
New Member
ON
Join Date: Jun 2021
Posts: 6
Rep Power: 5 |
Quote:
|
||
November 6, 2023, 10:12 |
|
#4 |
New Member
Join Date: Nov 2023
Location: China
Posts: 1
Rep Power: 0 |
The command "foamInfo xxx" will solver most problems, which often leads to "OpenFOAM/src/xxx" directory you can learn a lot about.
|
|
Tags |
source code |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] funkyDoCalc with OF2.3 massflow | NiFl | OpenFOAM Community Contributions | 14 | November 25, 2020 04:30 |
[swak4Foam] Installation Problem with OF 6 version | Aurel | OpenFOAM Community Contributions | 14 | November 18, 2020 17:18 |
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 | ordinary | OpenFOAM Installation | 19 | September 3, 2019 19:13 |
OpenFOAM without MPI | kokizzu | OpenFOAM Installation | 4 | May 26, 2014 10:17 |
Problem Building OF on Centos cluster (no admin rights) | CKH | OpenFOAM Installation | 5 | November 13, 2011 07:32 |