View Issue Details

IDProjectCategoryView StatusLast Update
0003883OpenFOAMBugpublic2022-09-15 19:23
Reportercgoessni Assigned Tohenry  
PrioritylowSeverityfeatureReproducibilityalways
Status closedResolutionno change required 
Platformamd64OSCentOSOS Version7
Product Versiondev 
Summary0003883: foamDictionary -expand does not work in case of custom #includeFunc
DescriptionWhen running foamDictionary with expand and a custom #includeFunc, this only succeeds when being inside the $FOAM_CASE folder, e.g.

$ pwd
/opt/OpenFOAM/OpenFOAM-git/tutorials/compressible/rhoCentralFoam/biconic25-55Run35
$ foamDictionary -expand system/controlDict # success
$ cd system
$ foamDictionary -expand controlDict # failure

Is there a way to make foamDictionary succeed independent of the current working directory?
TagsNo tags attached.

Activities

henry

2022-09-15 19:04

manager   ~0012734

You will have to rewrite includeFuncEntry to handle a path rather than a function name which would allow you to specify the path to the sample file for example so that it could be found no matter where you run foamDictionary from.

henry

2022-09-15 19:05

manager   ~0012735

Feature request.

henry

2022-09-15 19:23

manager   ~0012736

I have added the -case option to foamDictionary so now

foamDictionary -case .. -expand controlDict

works but there may be other issues it introduces so it might be removed after further testing if it is not reliable.

Issue History

Date Modified Username Field Change
2022-09-13 10:42 cgoessni New Issue
2022-09-15 19:04 henry Note Added: 0012734
2022-09-15 19:05 henry Severity minor => feature
2022-09-15 19:05 henry Assigned To => henry
2022-09-15 19:05 henry Status new => closed
2022-09-15 19:05 henry Resolution open => no change required
2022-09-15 19:05 henry Note Added: 0012735
2022-09-15 19:23 henry Note Added: 0012736