View Issue Details

IDProjectCategoryView StatusLast Update
0004262OpenFOAMBugpublic2025-08-07 09:26
Reportertobias2 Assigned Tohenry  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionsuspended 
PlatformGNU/LinuxOSOtherOS Version(please specify)
Product Version13 
Summary0004262: foamDictionary deleting boundary conditions for regex defined patches
DescriptionWhen having a boundary conditions file in 0/solid/T with regex definitions for some walls, it is not possible to use foamDictionary to add an entry, because it will delete the subDict-entries for the regex patches.

e.g.:

Orig. T-file:
dimensions [ 0 0 0 1 0 0 0 ];
internalField uniform 313.15;
boundaryField
{
    "wall_.*"
    {
        zeroGradient;
    }
    mapped
    {
        type coupledTemperature;
        thicknessLayers ( );
        kappaLayers ( );
        value $internalField;
    }
}

Executing:
foamDictionary -entry boundaryField/wall_heatinput -set "{type fixedValue; value 330;}" 0/solid/T

Will lead to:

dimensions [ 0 0 0 1 0 0 0 ];
internalField uniform 313.15;
boundaryField
{
    "wall_.*"
    {
    }
    mapped
    {
        type coupledTemperature;
        thicknessLayers ( );
        kappaLayers ( );
        value $internalField;
    }
    wall_heatinput
    {
        type fixedValue;
        value 330;
    }
}
TagsNo tags attached.

Activities

henry

2025-08-07 09:26

manager   ~0013637

This is a very complex requirement for foamDictionary which would require tricky further development and hence funding.

Issue History

Date Modified Username Field Change
2025-08-07 09:16 tobias2 New Issue
2025-08-07 09:26 henry Assigned To => henry
2025-08-07 09:26 henry Status new => closed
2025-08-07 09:26 henry Resolution open => suspended
2025-08-07 09:26 henry Note Added: 0013637