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

Standard InterDyMFoam doesn't work after modifying interFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 23, 2016, 06:21
Default Standard InterDyMFoam doesn't work after modifying interFoam
  #1
New Member
 
Helvines Aquino
Join Date: Aug 2016
Posts: 13
Rep Power: 10
nesca87 is on a distinguished road
Greetings to all FOAMers,

Recently, I tried to modified interFoam by adding temperature transport equation just like myinterfoamdiabatic by Qingming Liu with a few modification. http://www.tfd.chalmers.se/~hani/kur...ingmingLiu.pdf

I used user directory for both the new library and the new solver. The modified one works very well. However, when I tried to run the original interDyMFoam, the following error appeared:

PHP Code:
--> FOAM FATAL IO ERROR
keyword cp is undefined in dictionary "/home/hicha2/OpenFOAM/hicha2-2.3.0/run/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D/constant/transportProperties.water"

file: /home/hicha2/OpenFOAM/hicha2-2.3.0/run/tutorials/multiphase/interDyMFoam/ras/sloshingTank2D/constant/transportProperties.water from line 22 to line 24.

    From 
function dictionary::lookupEntry(const word&, boolbool) const
    
in file db/dictionary/dictionary.C at line 437.

FOAM exiting 
I did copy interDyMFoam tutorial to the user run directory, though. But, before I modified the interFoam, interDyMFoam worked well even though I used user run directory for simulation. I think the problem was about a constant which I added in the modified interFoam source library (cp, as shown in the error message), but I can't prove it since in there isn't anything about the library written in the error message. I assume the interFoam affects interDyMFoam because in OF solvers directory they're in the same folder.

Is there anyone who has experienced this problem? How can we move back to the standard OpenFOAM source library directory, after using user source library directory of another solver?

I am a newbie with OF and I have already tried to google this problem, but there is no a good result.

I'm using OD 2.3.0 in Ubuntu 12.04. Any kind of help is very appreciated.

Thank you,

Hicha
nesca87 is offline   Reply With Quote

Old   September 23, 2016, 09:52
Default
  #2
Senior Member
 
Join Date: Sep 2013
Posts: 353
Rep Power: 21
Bloerb will become famous soon enough
I think you made the following mistake. You compiled your new solver with the same name. You have basically overwritten your current solver

Inside make/files change
Code:
interFoam.C

EXE = $(FOAM_APPBIN)/interFoam
to
Code:
myInterFoam.C

EXE = $(FOAM_USER_APPBIN)/myInterFoam
Also rename your C file and compile the solver again. You can now call your solver by myInterFoam. Now recompile the standard interfoam solver.
Bloerb is offline   Reply With Quote

Old   September 23, 2016, 10:08
Default
  #3
New Member
 
Helvines Aquino
Join Date: Aug 2016
Posts: 13
Rep Power: 10
nesca87 is on a distinguished road
hello Bloerb,

Thanks for your answer.
However, I don't have any problem with the new solver.
The failed one is the original version in OpenFoam-2.3.0 directory which I didn't do any changes. I used user-2.3.0 directory for the new solver.

Just now, I realized that not only interDyMFoam, the standard solver of interFoam doesn't work as well.
nesca87 is offline   Reply With Quote

Old   September 23, 2016, 15:59
Default
  #4
Senior Member
 
Join Date: Sep 2013
Posts: 353
Rep Power: 21
Bloerb will become famous soon enough
Yes and if you give your solver the same name that still applies. The easy way to check is to go inside your user directory ($FOAM_USER_APPBIN) and remove the solver. It should be in the platforms/..../bin folder. After that open a new terminal and check again.
Bloerb is offline   Reply With Quote

Old   September 26, 2016, 07:26
Default
  #5
New Member
 
Helvines Aquino
Join Date: Aug 2016
Posts: 13
Rep Power: 10
nesca87 is on a distinguished road
Quote:
Originally Posted by Bloerb View Post
Yes and if you give your solver the same name that still applies. The easy way to check is to go inside your user directory ($FOAM_USER_APPBIN) and remove the solver. It should be in the platforms/..../bin folder. After that open a new terminal and check again.
Both solver had different names. It seems because OF used user directory platform instead the main one which usually been used by the standard solvers.
I solved the problem by compile again the library in main directory and it kind of work for me.

Anyway, thank you for your kind answer. I wouldn't realize if you didn't mention about the platform directory in the user directory.
nesca87 is offline   Reply With Quote

Old   January 5, 2017, 17:34
Default
  #6
New Member
 
CFDlover
Join Date: Nov 2015
Posts: 5
Rep Power: 11
genshih is on a distinguished road
Hi Hicha,
Could you please elaborate a little more since i am also facing the same problem now.

Regards,
genshih is offline   Reply With Quote

Old   January 5, 2017, 17:35
Default
  #7
New Member
 
CFDlover
Join Date: Nov 2015
Posts: 5
Rep Power: 11
genshih is on a distinguished road
Quote:
Originally Posted by nesca87 View Post
Both solver had different names. It seems because OF used user directory platform instead the main one which usually been used by the standard solvers.
I solved the problem by compile again the library in main directory and it kind of work for me.

Anyway, thank you for your kind answer. I wouldn't realize if you didn't mention about the platform directory in the user directory.
Hi Hicha,
Could you please elaborate a little more since i am also facing the same problem now.

Regards,
genshih is offline   Reply With Quote

Old   January 5, 2017, 23:47
Default
  #8
New Member
 
Helvines Aquino
Join Date: Aug 2016
Posts: 13
Rep Power: 10
nesca87 is on a distinguished road
Hi genshih.

Would you tell me more detail of your problem?
nesca87 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
reconstructPar does not work in interDyMFoam ageorg OpenFOAM Post-Processing 4 April 15, 2016 14:25
OF 2.0.0: Residual control does not work in interFoam LarsPT OpenFOAM Running, Solving & CFD 14 April 10, 2016 15:26
strange curvature with interFoam (comparison with Brackbill work) duongquaphim OpenFOAM Running, Solving & CFD 23 July 25, 2013 02:03
Does PISO algorithm work with interfoam in openFOAM 2.1.0? Krishna Sandeep OpenFOAM Running, Solving & CFD 3 June 14, 2012 02:32
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 16:45


All times are GMT -4. The time now is 09:39.