View Issue Details

IDProjectCategoryView StatusLast Update
0003955OpenFOAMBugpublic2023-02-01 11:09
ReporterWolfgangSchmidt Assigned Tohenry  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionno change required 
PlatformLinuxOSUbuntuOS Version20.04
Product Version10 
Summary0003955: scalarTransportFoam crashes when fvConstraint is provided
DescriptionThe solver scalarTransportFoam crashes, e.g. tutorials/basic/scalarTransportFoam/pitzdaily, when a nonempty fvConstraint is provided for e.g limitTemperature. It happened when I tried to calculate a scalartransport in my own simulation. Anyhow, when double checking with the above mentioned tutorial case, the same error message shows up. To do, so simply copying the fvConstraint file from /opt/openfoam10/casedicts/…/limitTemperature in the system folder of the scalarTransportFoam/pitzdaily tutorial, adding/tweaking the temp constraints in that file and renaming it to fvConstraints. Voila. Starting scalartransportFoam crashes after launching it (single or parallel case doesn‘t matter) .
Adding a fvModel dictionary in the constant folder ( for e.g heat source/sink), has a similar effect. When checking the solver options with scalarTransportFoam -listfV….. it claims, that fvConstraints and fvModel can be used.
I haven‘t checked older versions ( with e.g fvOptions) when applying limits/constraints
Steps To Reproducesee description
Additional Informationreproducible als under windows linux subsystem ( wls) v2
TagsNo tags attached.

Activities

henry

2023-01-31 22:05

manager   ~0012940

From what you have provided it is not clear what error messages you get or in what way you have set the fvConstraints to suit the case and solver.

WolfgangSchmidt

2023-02-01 10:23

reporter   ~0012941

I've added now the problem case - which is the tutorial file (tutorial/basic/scalarTransportFoam/pitzdaily) with the addtion of two dummyfiles 'dummy.fvModels' (condtant folder) and 'dummy. fvConstraints' (system folder) which cause the problem when renaming those to fvModels and/or fvConstraints. The error message after entering the two commands (1) and (2) in the terminal is as follows

(1)
wolsch@wolfgang-Z10PE-D8-WS:> mv system/dummy.fvConstraints system/fvConstraints

(2)
wolsch@wolfgang-Z10PE-D8-WS:> scalarTransportFoam
/*---------------------------------------------------------------------------*\
  ========= |
  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
   \\ / O peration | Website: https://openfoam.org
    \\ / A nd | Version: 10
     \\/ M anipulation |
\*---------------------------------------------------------------------------*/
Build : 10-c4cf895ad8fa
Exec : scalarTransportFoam
Date : Feb 01 2023
Time : 11:07:33
Host : "wolfgang-Z10PE-D8-WS"
PID : 20709
I/O : uncollated
Case : /home/wolsch/OpenFOAM/wolsch-10/battleField/compressible/rhoPimpleFoam/scalarFoam
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0


SIMPLE: No convergence criteria found

Reading field T

Reading field U

Reading physicalProperties

Reading diffusivity DT

Reading/calculating face flux field phi

No fvModels present
Creating fvConstraints from "system/fvConstraints"

Selecting finite volume constraint type limitTemperature
    Name: limitT
    - selecting all cells
    - selected 12225 cell(s) with volume 1.4516e-05

Calculating scalar transport

Courant Number mean: 4.5058 max: 19.7018
scalarTransport write:


--> FOAM FATAL ERROR:

    lookup of physicalProperties from objectRegistry region0 successful
    but it is not a basicThermo, it is a dictionary

    From function const Type& Foam::objectRegistry::lookupObject(const Foam::word&) const [with Type = Foam::basicThermo]
    in file /home/ubuntu/OpenFOAM/OpenFOAM-10/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 178.

FOAM aborting

#0 Foam::error::printStack(Foam::Ostream&) at ??:?
#1 Foam::error::abort() at ??:?
#2 Foam::basicThermo const& Foam::objectRegistry::lookupObject<Foam::basicThermo>(Foam::word const&) const at ??:?
#3 Foam::fv::limitTemperature::constrainedFields() const at ??:?
#4 Foam::fvConstraint::constrainsField(Foam::word const&) const at ??:?
#5 bool Foam::fvConstraints::constrain<double>(Foam::fvMatrix<double>&) const in "/opt/openfoam10/platforms/linux64GccDPInt32Opt/bin/scalarTransportFoam"
#6 Foam::functionObjects::scalarTransport::execute() at ??:?
#7 Foam::functionObjectList::start() at ??:?
#8 Foam::Time::run() const at ??:?
#9 Foam::Time::loop() at ??:?
#10 ? in "/opt/openfoam10/platforms/linux64GccDPInt32Opt/bin/scalarTransportFoam"
#11 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#12 ? in "/opt/openfoam10/platforms/linux64GccDPInt32Opt/bin/scalarTransportFoam"
Abgebrochen (Speicherabzug geschrieben)
scalarFoam.tar.gz (839,219 bytes)

henry

2023-02-01 11:09

manager   ~0012942

User error.

limitTemperature cannot be used with scalarTransportFoam because this solver solves for a passive scalar named T not the thermodynamic temperature.

Issue History

Date Modified Username Field Change
2023-01-31 19:45 WolfgangSchmidt New Issue
2023-01-31 22:05 henry Note Added: 0012940
2023-02-01 10:23 WolfgangSchmidt Note Added: 0012941
2023-02-01 10:23 WolfgangSchmidt File Added: scalarFoam.tar.gz
2023-02-01 11:09 henry Assigned To => henry
2023-02-01 11:09 henry Status new => closed
2023-02-01 11:09 henry Resolution open => no change required
2023-02-01 11:09 henry Note Added: 0012942