View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004223 | OpenFOAM | Bug | public | 2025-03-06 12:24 | 2025-03-06 15:21 |
Reporter | cgoessni | Assigned To | henry | ||
Priority | low | Severity | crash | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | dev | ||||
Fixed in Version | dev | ||||
Summary | 0004223: timeVaryingMappedFixedValue patchField misses timeToUserTime call | ||||
Description | When running a simulation with a timeVaryingMappedFixedValue patch field, | ||||
Steps To Reproduce | Run the attached case, which is kivaTest shifted by 720 CAD (so starting at 540 CAD) and using timeVaryingMappedFixedValue for one temperature as a demonstration case. In log.foamRun, it reads: --> FOAM FATAL ERROR: Cannot find starting sampling values for current time 0.06 Have sampling values for times 1(540) In directory "constant/boundaryData/piston" of field T From function void Foam::timeVaryingMappedFvPatchField<Type>::checkTable() [with Type = double] in file fields/fvPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFvPatchField.C at line 139. FOAM exiting | ||||
Additional Information | The attached patch fixes the issue here. I am not sure if there are other conversions missing as well. | ||||
Tags | No tags attached. | ||||
|
timeVaryingMappedWallDiff.txt (721 bytes)
diff --git a/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFvPatchField.C index 531f467..92aa986 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFvPatchField.C @@ -129,7 +129,7 @@ void Foam::timeVaryingMappedFvPatchField<Type>::checkTable() ( sampleTimes_, startSampleTime_, - time().value(), + time().userTimeValue(), lo, hi ); |
|
Sorry, the description should be: When running a simulation with a timeVaryingMappedFixedValue patch field, the file lookup seems to be in the wrong time folder. |
|
Resolved by commit b2e2452428fad4ce6119768531f10ae318b69e5d |
Date Modified | Username | Field | Change |
---|---|---|---|
2025-03-06 12:24 | cgoessni | New Issue | |
2025-03-06 12:24 | cgoessni | File Added: timeVaryingMappedWallDiff.txt | |
2025-03-06 12:24 | cgoessni | File Added: kivaTest_timeVaryingMappedWall.tgz | |
2025-03-06 12:24 | cgoessni | Note Added: 0013540 | |
2025-03-06 15:21 | henry | Assigned To | => henry |
2025-03-06 15:21 | henry | Status | new => resolved |
2025-03-06 15:21 | henry | Resolution | open => fixed |
2025-03-06 15:21 | henry | Fixed in Version | => dev |
2025-03-06 15:21 | henry | Note Added: 0013542 |