|
[Sponsors] |
The solver implantation fails in OpenFOAM-v2012 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 8, 2021, 05:43 |
The solver implantation fails in OpenFOAM-v2012
|
#1 |
New Member
Yi Wang
Join Date: Mar 2019
Location: Shenzhen, China
Posts: 4
Rep Power: 7 |
I copied the code of pimpleFoam solver into a new folder and renamed it as TKEFoam. I change the pimpleFoam.C into TKEFoam.C and I also change the file in the Make folder. When I run TKEFoam, I get this error:
*** Error in `TKEFoam': free(): invalid pointer: 0x0000000000e20048 *** ======= Backtrace: ========= /lib64/libc.so.6(+0x81429)[0x7ff322bac429] TKEFoam(_ZN4Foam5tokenD1Ev+0x75)[0x43a755] ... ... Steps to reproduce: 1) Create a new folder in OpenFOAM, my folder name is userdefined 2) Copy the pimpleFoam code from the directory: applications/solvers/incompressible/pimpleFoam to the folder you create 3) Modify the name of pimpleFoam.C as XXXFoam.C, the operation should be carried out in files in Make folder 4) Modify the content: "EXE = $(FOAM_APPBIN)/pimpleFoam" as "EXE = $(FOAM_USER_APPBIN)/XXXFoam" in files 5) Compile the code. Then use channel395 case to test the solver XXXFoam, the errors show up. |
|
Tags |
new solver, openfoamv2012 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
foam-extend-4.1 release | hjasak | OpenFOAM Announcements from Other Sources | 19 | July 16, 2021 06:02 |
OpenFOAM webinar: A multidimensional parallel numerical solver of ADM1 model for anae | Gavin | OpenFOAM Announcements from Other Sources | 0 | July 12, 2018 11:30 |
Parallelisation of a new solid solver in OpenFOAM | Jibran | OpenFOAM Programming & Development | 3 | August 25, 2017 07:41 |
fluent divergence for no reason | sufjanst | FLUENT | 2 | March 23, 2016 17:08 |
How to rewrite a standard OpenFOAM solver as a C++ class | cfbaptista | OpenFOAM Programming & Development | 7 | March 23, 2016 05:50 |