CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Compiling new solver in OpenFOAM 8

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 13, 2023, 05:56
Default Compiling new solver in OpenFOAM 8
  #1
New Member
 
Hamed Hoorijani
Join Date: May 2019
Location: Gent, Belgium
Posts: 23
Rep Power: 7
Hamedhoorijani is on a distinguished road
Hello, everyone,


I am having a hard time finding what's wrong with my code. I've tried compiling my solver from OpenFOAM 6 for OpenFOAM 8. My solver is based on pisoFOAM, and I've made all the required modifications according to the updates in OpenFOAM, such as the turbulence model, etc. However, I'm receiving an error that I can't understand. The solver compiles without any warning or errors but when I try to use it, I face this error below. I've posted the error and the content of the momentumTransport file below.

...

Reading g

--> FOAM FATAL ERROR:

lookup of momentumTransport from objectRegistry region0 successful
but it is not a momentumTransport, it is a Stokes

From function const Type& Foam:bjectRegistry::lookupObject(const Foam::word&) const [with Type = Foam::PhaseCompressibleMomentumTransportModel<Foam ::fluidThermo>]
in file ... /OpenFOAM-8/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 178.

FOAM aborting

#0 Foam::error:rintStack(Foam::Ostream&) at ??:?
#1 Foam::error::abort() at ??:?
#2 Foam::PhaseCompressibleMomentumTransportModel<Foam ::fluidThermo> const& Foam:bjectRegistry::lookupObject<Foam::PhaseComp ressibleMomentumTransportModel<Foam::fluidThermo> >(Foam::word const&) const at ??:?
#3 Foam::cfdemCloud::cfdemCloud(Foam::fvMesh const&) at ??:?
#4 main at ??:?
#5 __libc_start_main in "/lib64/libc.so.6"
#6 ? at ??:?
Aborted (core dumped)

momentumTransport
*/-------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 8
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object momentumTransport;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

simulationType laminar;

// ************************************************** *********************** //


I would greatly appreciate it if anyone could share their insights regarding this problem.
Hamedhoorijani is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: WorkBench Error: Could not handle event: SolutionStatusUpdate Kieyo Fluent Multiphase 0 November 10, 2022 00:58
Error SIGSEGV using VOF and UDF JERC_UTFSM Fluent UDF and Scheme Programming 14 November 8, 2021 00:17
How to check the results of OpenFOAM Solver? priyankap OpenFOAM Running, Solving & CFD 3 April 8, 2019 04:18
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 5, 2016 04:18
Can't get data from OpenFoam to external solver using externalCoupled perry OpenFOAM Running, Solving & CFD 4 May 26, 2014 09:09


All times are GMT -4. The time now is 06:26.