View Issue Details

IDProjectCategoryView StatusLast Update
0002129OpenFOAMBugpublic2016-06-24 15:23
ReporterMattijsJ Assigned Tohenry  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformGNU/LinuxOSOpenSuSEOS Version13.2
Product Versiondev 
Fixed in Versiondev 
Summary0002129: potentialFoam does not copy settings of complex bcs, only the type
DescriptionAttached case uses fixedMean instead of fixedValue.
Steps To ReproduceAttached case.

-> FOAM FATAL ERROR:
object of type N4Foam9Function1IdEE is not allocated

    From function T* Foam::autoPtr<T>::operator->() [with T = Foam::Function1<double>]
    in file /home/mattijs/OpenFOAM/OpenFOAM-dev.feature-mapFields/src/OpenFOAM/lnInclude/autoPtrI.H at line 176.

TagsNo tags attached.

Activities

MattijsJ

2016-06-23 12:44

reporter  

pitzDaily.tgz (226,520 bytes)

MattijsJ

2016-06-23 12:51

reporter  

log.potentialFoam (2,640 bytes)

MattijsJ

2016-06-23 12:51

reporter  

MattijsJ

2016-06-23 12:54

reporter   ~0006460

With a fix of cloneing the p bcs when constructing Phi it now also adjusts the mean of the Phi (I've uploaded logs of std potentialFoam and with adapted createFields). I guess you want to keep Phi frozen so instead rewrite fixedMean to fixedValue?

henry

2016-06-23 12:58

manager   ~0006461

The boundary conditions of p are generally not appropriate for Phi and should not be cloned. If you need complex BCs for Phi you should specify them in the Phi field file.

henry

2016-06-23 13:24

manager   ~0006462

Maybe it would be better to use pBCTypes and the default BCs for Phi rather than those of p and overide by providing a Phi file as required.

henry

2016-06-24 15:22

manager   ~0006466

Resolved by commit afa64919ecc355e978a2819d8acfe33b3f990371

Issue History

Date Modified Username Field Change
2016-06-23 12:44 MattijsJ New Issue
2016-06-23 12:44 MattijsJ File Added: pitzDaily.tgz
2016-06-23 12:51 MattijsJ File Added: log.potentialFoam
2016-06-23 12:51 MattijsJ File Added: log.potentialFoam_with_fix
2016-06-23 12:54 MattijsJ Note Added: 0006460
2016-06-23 12:58 henry Note Added: 0006461
2016-06-23 13:24 henry Note Added: 0006462
2016-06-24 15:22 henry Note Added: 0006466
2016-06-24 15:22 henry Status new => resolved
2016-06-24 15:22 henry Fixed in Version => dev
2016-06-24 15:22 henry Resolution open => fixed
2016-06-24 15:22 henry Assigned To => henry