CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

How to find related source codes?

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By clapointe

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 16, 2021, 18:30
Default How to find related source codes?
  #1
New Member
 
ON
Join Date: Jun 2021
Posts: 6
Rep Power: 5
Devin063 is on a distinguished road
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;   
}
How I find source codes related to these parameters so that I can know all options for these parameters?

Thank you very much!
Devin063 is offline   Reply With Quote

Old   June 16, 2021, 19:18
Default
  #2
Senior Member
 
Join Date: Aug 2015
Posts: 494
Rep Power: 14
clapointe is on a distinguished road
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
Devin063 likes this.
__________________
Public git repository : https://github.com/clapointe2011/public
clapointe is offline   Reply With Quote

Old   June 18, 2021, 01:14
Default
  #3
New Member
 
ON
Join Date: Jun 2021
Posts: 6
Rep Power: 5
Devin063 is on a distinguished road
Quote:
Originally Posted by clapointe View Post
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
Thank you very much! It seems I have lots of documentations and commands need to learn.
Devin063 is offline   Reply With Quote

Old   November 6, 2023, 09:12
Default
  #4
New Member
 
Join Date: Nov 2023
Location: China
Posts: 1
Rep Power: 0
Yixiao Yang is on a distinguished road
The command "foamInfo xxx" will solver most problems, which often leads to "OpenFOAM/src/xxx" directory you can learn a lot about.
Yixiao Yang is offline   Reply With Quote

Reply

Tags
source code

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 03:30
[swak4Foam] Installation Problem with OF 6 version Aurel OpenFOAM Community Contributions 14 November 18, 2020 16: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 18:13
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 09:17
Problem Building OF on Centos cluster (no admin rights) CKH OpenFOAM Installation 5 November 13, 2011 06:32


All times are GMT -4. The time now is 23:51.