CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Combining two different solvers

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 27, 2020, 06:32
Default Combining two different solvers
  #1
New Member
 
Mert
Join Date: Nov 2020
Posts: 3
Rep Power: 5
rocknrolltr is on a distinguished road
Hello,


I am new to OpenFoam (using OpenFOAM-v2006) and currently working on a project. My task is to replace the fluid-part of "chtMultiRegionTwoPhaseEulerFoam.C" with the fluid-part of "interCondensatingEvaporatingFoam.C".



First I copied the folder "chtMultiRegionTwoPhaseEulerFoam.C" and renamed it as "mychtMultiRegionTwoPhaseEulerFoam.C", then I started to add (or replace) the necessary header files. I didn't have a problem until I replaced the header file "createFields.H" (I basically deleted it and added the one from interCondensatingEvaporatingFoam).


Now I get this error:


Code:
In file included from ../createFields.H:1,
                 from /home/ws/uwdpr/OpenFoam_Source/OpenFOAM-v2006/src/OpenFOAM/lnInclude/postProcess.H:147,
                 from chtMultiRegionTwoPhaseEulerFoam.C:84:
./fluid/createFluidFields.H: In function ‘int main(int, char**)’:
./fluid/createFluidFields.H:107:5: error: ‘pimple’ was not declared in this scope
  107 |     pimple.dict(),
      |     ^~~~~~
In file included from chtMultiRegionTwoPhaseEulerFoam.C:95:
/home/ws/uwdpr/OpenFoam_Source/OpenFOAM-v2006/src/dynamicFvMesh/lnInclude/createDyMControls.H:6:5: error: ‘pimple’ was not declared in this scope
    6 |     pimple.dict().getOrDefault("correctPhi", mesh.dynamic())
      |

And mychtMultiRegionTwoPhaseEulerFoam.c looks like this:


Code:
int main(int argc, char *argv[])
{
    argList::addNote
    (
        "Transient solver for buoyant, turbulent two phase fluid flow and"
        "solid heat conduction with conjugate heat transfer "
        "between solid and fluid regions."
    );

    #define NO_CONTROL
    #define CREATE_MESH createMeshesPostProcess.H
    #include "postProcess.H"

    #include "addCheckCaseOptions.H"              // added
    #include "setRootCaseLists.H"                 // added
    #include "createTime.H"
    #include "createDynamicFvMesh.H"              // added
    #include "mycreateMeshes.H"                 // added
    #include "myinitContinuityErrs.H"             // added
    #include "createDyMControls.H"                // added
    #include "createFields.H"                     // changed
    #include "createAlphaFluxes.H"                 // added
    #include "initCorrectPhi.H"                    // added
    #include "createUfIfPresent.H"                 // added
    #include "readSolidTimeControls.H"
    #include "solidRegionDiffusionNo.H"
     
    #include "CourantNo.H"                         // added
    #include "setInitialDeltaT.H"                  // added

I don't know why it is giving me the error "..was not declared in this scope.", I know what that error means, but I cannot figure out why I keep getting this error



If anyone can help me, I'd be grateful.


Best Regards,
Mert
rocknrolltr is offline   Reply With Quote

Reply

Tags
chtmultiregionfoam, header files, intercondensatingevaporat, solvers


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
Combining physics of two solvers aishk OpenFOAM Programming & Development 0 April 15, 2019 19:45
Solid Mechanics Solvers added to OpenFOAM Extend bigphil OpenFOAM Announcements from Other Sources 26 October 12, 2017 05:01
Is there a difference between Riemann solvers and characteristic based solvers? linkamp Main CFD Forum 3 February 18, 2016 10:12
FSI solvers - best solvers steven123 OpenFOAM Running, Solving & CFD 0 July 8, 2014 11:26
Combining two three solvers sachin OpenFOAM Running, Solving & CFD 0 March 16, 2014 04:27


All times are GMT -4. The time now is 20:46.