View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003955 | OpenFOAM | Bug | public | 2023-01-31 19:45 | 2023-02-01 11:09 |
Reporter | WolfgangSchmidt | Assigned To | henry | ||
Priority | normal | Severity | crash | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | Linux | OS | Ubuntu | OS Version | 20.04 |
Product Version | 10 | ||||
Summary | 0003955: scalarTransportFoam crashes when fvConstraint is provided | ||||
Description | The 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 Reproduce | see description | ||||
Additional Information | reproducible als under windows linux subsystem ( wls) v2 | ||||
Tags | No tags attached. | ||||
|
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. |
|
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) |
|
User error. limitTemperature cannot be used with scalarTransportFoam because this solver solves for a passive scalar named T not the thermodynamic temperature. |
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 |