View Issue Details

IDProjectCategoryView StatusLast Update
0004103OpenFOAMBugpublic2024-06-25 08:56
Reportercgoessni Assigned Towill  
PrioritylowSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Versiondev 
Fixed in Versiondev 
Summary0004103: rpm tables get expanded to and written in real time, not user time
DescriptionWhen setting a rotating wall velocity and rpm with Table Function1, using a tool that expands the rpm function and writes it back (like setFields, but also createNonConformalCouples shows the same behaviour for our simulations), the written result is in real time, not user time.
Steps To ReproduceRun the following in tutorials/XiFluid/kivaTest:

#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory

# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions

# Get application name
application=$(getApplication)

runApplication kivaToFoam -file otape17

cp $FOAM_ETC/caseDicts/annotated/setFieldsDict system/
cp -R -- -180 0

foamDictionary -entry defaultFieldValues -set '(volVectorFieldValue U (0 0 0))' system/setFieldsDict
foamDictionary -entry regions -set '()' system/setFieldsDict

foamDictionary -entry boundaryField/liner/type -set rotatingWallVelocity 0/U
foamDictionary -entry boundaryField/liner/axis -set '(0 0 1)' 0/U
foamDictionary -entry boundaryField/liner/origin -set '(0 0 0)' 0/U
foamDictionary -entry boundaryField/liner/rpm -set 'table ((0 0) (10 100))' 0/U

runApplication setFields -time 0

#------------------------------------------------------------------------------
Additional InformationThe liner entry in 0/U reads as

    liner
    {
        type rotatingWallVelocity;
        origin (0 0 0);
        axis (0 0 1);
        rpm
        {
            type table;
            values
2
(
(0 0)
(0.00111111 100)
)
;
        }
        value uniform (0 0 -0);
    }


where I would expect that the expanded table should read as:

2
(
(0 0)
(10 100)
)
;
TagsNo tags attached.

Activities

cgoessni

2024-06-24 09:50

reporter   ~0013284

To make things worse, if one decomposes the case, the entry for the rpm gets transformed again to real time, reading:

    liner
    {
        type rotatingWallVelocity;
        origin (0 0 0);
        axis (0 0 1);
        rpm
        {
            type table;
            values
2
(
(0 0)
(1.234566667e-07 100)
)
;
        }
        value uniform (0 0 0);
    }

will

2024-06-25 08:56

manager   ~0013285

Thanks for pointing this out. Fixed here:

https://github.com/OpenFOAM/OpenFOAM-dev/commit/bb26f49cd8de1549b2217950a9c4db2428521682

Issue History

Date Modified Username Field Change
2024-06-24 08:40 cgoessni New Issue
2024-06-24 09:50 cgoessni Note Added: 0013284
2024-06-25 08:56 will Assigned To => will
2024-06-25 08:56 will Status new => resolved
2024-06-25 08:56 will Resolution open => fixed
2024-06-25 08:56 will Fixed in Version => dev
2024-06-25 08:56 will Note Added: 0013285