View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002948 | OpenFOAM | Bug | public | 2018-05-22 05:26 | 2018-05-23 00:22 |
Reporter | SamMallinson | Assigned To | henry | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | Unix | OS | debian | OS Version | buster |
Product Version | dev | ||||
Summary | 0002948: changeDictionary does not respect #include's properly | ||||
Description | I have modified the OF-dev/tutorial/heatTransfer/chtMultiRegionFoam tutorial multiRegionHeater to have some automatically calculated values #include'd at the begining of field files: in this instance, 0/T. I added a #include to the beginning of 0/T, to specify the initial temperature, Tinf. I also added the same #include to the sub-dict for T in system/topAir/changeDictionaryDict After the changeDictionary utility has run, the #include is not included at the top of 0/topAir/T, although the variable $Tinf is still present. So, when it comes to running chtMultiRegionFoam, the solver crashes and complain about invalid parameter. | ||||
Steps To Reproduce | 1. download attached case file 2. ./Allrun | ||||
Tags | #include, changeDictionary | ||||
|
Try using foamDictionary rather than or in addition to changeDictionary. Have you tried the -enableFunctionEntries option on changeDictionary: changeDictionary -help Usage: changeDictionary [OPTIONS] options: -case <dir> specify alternate case directory, default is the cwd -constant include the 'constant/' dir in the times list -dict <file> read control dictionary from specified location -disablePatchGroups disable matching keys to patch groups -enableFunctionEntries enable expansion of dictionary directives - #include, #codeStream etc -fileHandler <handler> override the fileHandler -hostRoots <(((host1 dir1) .. (hostN dirN))> slave root directories (per host) for distributed running -instance <name> override instance setting (default is the time name) -latestTime select the latest time -listFunctionObjects List functionObjects -listRegisteredSwitches List switches registered for run-time modification -listScalarBCs List scalar field boundary conditions (fvPatchField<scalar>) -listSwitches List switches declared in libraries but not set in etc/controlDict -listUnsetSwitches List switches declared in libraries but not set in etc/controlDict -listVectorBCs List vector field boundary conditions (fvPatchField<vector>) -literalRE treat regular expressions literally (i.e., as a keyword) -newTimes select the new times -noFunctionObjects do not execute functionObjects -noZero exclude the '0/' dir from the times list -parallel run in parallel -region <name> specify alternative mesh region -roots <(dir1 .. dirN)> slave root directories for distributed running -subDict <name> specify the subDict name of the replacements dictionary -time <ranges> comma-separated time ranges - eg, ':10,20,40:70,1000:' -srcDoc display source code in browser -doc display application documentation in browser -help print the usage |
|
Not sure how to use foamDictionary instead of changeDictionary - for eg, not -region option for the former. Tried the -enableFunctionEntries with changeDictionary - this worked, but only in single processor mode. In multiprocessor |
|
User support request. |
Date Modified | Username | Field | Change |
---|---|---|---|
2018-05-22 05:26 | SamMallinson | New Issue | |
2018-05-22 05:26 | SamMallinson | Tag Attached: changeDictionary | |
2018-05-22 05:27 | SamMallinson | Tag Attached: #include | |
2018-05-22 07:18 | henry | Note Added: 0009616 | |
2018-05-22 08:04 | henry | Note Edited: 0009616 | |
2018-05-23 00:17 | SamMallinson | Note Added: 0009627 | |
2018-05-23 00:22 | henry | Assigned To | => henry |
2018-05-23 00:22 | henry | Status | new => closed |
2018-05-23 00:22 | henry | Resolution | open => no change required |
2018-05-23 00:22 | henry | Note Added: 0009629 |