View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004218 | OpenFOAM | Bug | public | 2025-03-03 23:06 | 2025-03-05 11:04 |
Reporter | blocksgearing0d | Assigned To | henry | ||
Priority | low | Severity | text | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | GNU/Linux | OS | RHEL | OS Version | 9.4 |
Product Version | dev | ||||
Summary | 0004218: Outdated codeStream Example Leading to a Segmentation Fault | ||||
Description | The example provided in codeStream.H for setting a non-uniform internal field ( https://github.com/OpenFOAM/OpenFOAM-dev/blob/master/src/OpenFOAM/db/dictionary/functionEntries/codeStream/codeStream.H#L63-L84 ) consistently results in a segmentation fault. | ||||
Steps To Reproduce | 1. Generate a mesh in a tutorial case. 2. Copy and paste the example code from codeStream.H as the internalField value in any scalarField boundary condition in the 0/ directory. 3. Expand the field using the following command: $ foamDictionary -expand 0/<scalarField> | ||||
Additional Information | The example provided in codeStream.H was valuable and convenient for various applications, such as: 1. Setting up Gaussian profile initial conditions. 2. Defining initial turbulent fluctuations or 3. Other non-uniform field initialisations required for advanced simulations, e.g. void-fraction distributions. | ||||
Tags | No tags attached. | ||||
|
I tried it to set alpha.water in the damBreak case and it worked correctly, no problems at all. However foamDictionary cannot expand the that particular codeStream entry because the file is read and processed as a pure dictionary not a field, foamDictionary does not have an fvMesh. |
Date Modified | Username | Field | Change |
---|---|---|---|
2025-03-03 23:06 | blocksgearing0d | New Issue | |
2025-03-04 09:28 | henry | Note Added: 0013534 | |
2025-03-05 11:04 | henry | Assigned To | => henry |
2025-03-05 11:04 | henry | Status | new => closed |
2025-03-05 11:04 | henry | Resolution | open => no change required |