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

Problem Including "setRootCaseLists.H"

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 5, 2020, 13:59
Default Problem Including "setRootCaseLists.H"
  #1
New Member
 
Mohammad Khojastehmehr
Join Date: Jul 2020
Posts: 19
Rep Power: 5
MCrossover97 is on a distinguished road
Hey everybody,

I have compiled this solver successfully:
Code:
#include <Reaktoro/Reaktoro.hpp>
#include "fvCFD.H"

int main(int argc, char *argv[])
{
    //#include "setRootCaseLists.H"
    Reaktoro::ChemicalEditor editor;
    editor.addAqueousPhaseWithElements("H O C Ca");
    editor.addMineralPhase("Calcite");

    Reaktoro::ChemicalSystem system(editor);

    Reaktoro::EquilibriumProblem problem(system);
    problem.add("H2O", 1, "kg");
    problem.add("CaCO3", 1, "mol");
    std::cout << "h" << std::endl;
    Reaktoro::ChemicalState state(system);
    std::cout << "h" << std::endl;
    state = equilibrate(problem);
    std::cout << "h" << std::endl;
}
And it works perfectly fine:
Code:
(base) mcrossover97@DESKTOP-E8DM4SE:/mnt/d/FOAM/run/reaktoro$ reaktoroFOAM
h
h
h
But when I include "setRootCaseLists.H", although the solver is made , it doesn't run properly. Since it does not give me any error in WSL, I have no idea what the problem might be. it doesn't print the last "h":
Code:
(base) mcrossover97@DESKTOP-E8DM4SE:/mnt/d/FOAM/run/reaktoro$ reaktoroFOAM
/*---------------------------------------------------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  8
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
Build  : 8-9b73cf21a682
Exec   : reaktoroFOAM
Date   : Nov 05 2020
Time   : 22:25:24
Host   : "DESKTOP-E8DM4SE"
PID    : 10734
I/O    : uncollated
Case   : /mnt/d/FOAM/run/reaktoro
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

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
h
h
I would be very appreciative if anyone can help me with this.
MCrossover97 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
BuoyantBoussinesqSimpleFoam_Facing problem Mondal131211 OpenFOAM Running, Solving & CFD 1 April 10, 2019 19:41
Mesh& steptime independant: conduction-convection problem Fati1 Main CFD Forum 1 October 28, 2018 13:52
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 05:59
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13


All times are GMT -4. The time now is 21:49.