View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003986 | OpenFOAM | Bug | public | 2023-06-16 07:31 | 2023-06-16 11:10 |
Reporter | cgoessni | Assigned To | henry | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | no change required | ||
Product Version | dev | ||||
Summary | 0003986: CourantNo and pressure function objects fail in case of compressible flow | ||||
Description | Running CourantNo and pressure function objects for compressible flow simulations fail because the function objects do not request the rho_ field in the fields() function. They would need a similar implementation of fields() function as the age functionObject. | ||||
Steps To Reproduce | All crashes are reproducible e.g. with the tutorials/fluid/pitzDaily case. Run the tutorial as-is until the first time step is written. Then: For CourantNo functionObject: 1.) Run "foamPostProcess -func CourantNo -time 0.001" It would crash with: --> FOAM FATAL ERROR: request for volScalarField rho from objectRegistry region0 failed available objects of type volScalarField are 0() From function const Type& Foam::objectRegistry::lookupObject(const Foam::word&) const [with Type = Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>] in file /opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 211. For pressure functionObject: 1.) Ensure that rho_ field is required by setting the following in the controlDict/functions: pressure { type pressure; libs ("libfieldFunctionObjects.so"); calcTotal yes; calcCoeff no; pRef 1e5; } 2.) run "foamPostProcess -time 0.001" --> FOAM FATAL ERROR: request for volScalarField rho from objectRegistry region0 failed available objects of type volScalarField are 5 ( pMean pPrime2Mean p p_0 p_0_0 ) From function const Type& Foam::objectRegistry::lookupObject(const Foam::word&) const [with Type = Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>] in file /opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 211. | ||||
Tags | No tags attached. | ||||
|
> They would need a similar implementation of fields() function as the age functionObject. This would cause them to fail for incompressible cases. Try using the -solver option: foamPostProcess -solver fluid -func CourantNo |
|
or foamPostProcess -field rho -func CourantNo |
|
User support request. |
Date Modified | Username | Field | Change |
---|---|---|---|
2023-06-16 07:31 | cgoessni | New Issue | |
2023-06-16 11:05 | henry | Note Added: 0013048 | |
2023-06-16 11:09 | henry | Note Added: 0013049 | |
2023-06-16 11:10 | henry | Assigned To | => henry |
2023-06-16 11:10 | henry | Status | new => resolved |
2023-06-16 11:10 | henry | Resolution | open => no change required |
2023-06-16 11:10 | henry | Note Added: 0013050 |