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

The solver implantation fails in OpenFOAM-v2012

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 8, 2021, 04:43
Default The solver implantation fails in OpenFOAM-v2012
  #1
New Member
 
Yi Wang
Join Date: Mar 2019
Location: Shenzhen, China
Posts: 4
Rep Power: 7
wangy11756010 is on a distinguished road
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.
wangy11756010 is offline   Reply With Quote

Reply

Tags
new solver, openfoamv2012

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
foam-extend-4.1 release hjasak OpenFOAM Announcements from Other Sources 19 July 16, 2021 05:02
OpenFOAM webinar: A multidimensional parallel numerical solver of ADM1 model for anae Gavin OpenFOAM Announcements from Other Sources 0 July 12, 2018 10:30
Parallelisation of a new solid solver in OpenFOAM Jibran OpenFOAM Programming & Development 3 August 25, 2017 06:41
fluent divergence for no reason sufjanst FLUENT 2 March 23, 2016 16:08
How to rewrite a standard OpenFOAM solver as a C++ class cfbaptista OpenFOAM Programming & Development 7 March 23, 2016 04:50


All times are GMT -4. The time now is 17:51.