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

error in compling newsolver for interFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 25, 2017, 03:27
Default error in compling newsolver for interFoam
  #1
Senior Member
 
Nguyen Duy Trong
Join Date: Apr 2014
Posts: 124
Rep Power: 12
ndtrong is on a distinguished road
Hi everyone,

It is great if someone could help me on the error as in following figure.
I declare a new variables and compile it. However, it shows errors like these.
Could you please help me? Thanks
Attached Images
File Type: jpg error.jpg (139.1 KB, 33 views)
ndtrong is offline   Reply With Quote

Old   July 25, 2017, 12:04
Default
  #2
Senior Member
 
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 15
babakflame is on a distinguished road
Hey,

Its so hard for me to follow from this figure, can you describe what file did you change from primary interfoam and how?
babakflame is offline   Reply With Quote

Old   July 25, 2017, 13:36
Default
  #3
Senior Member
 
Nguyen Duy Trong
Join Date: Apr 2014
Posts: 124
Rep Power: 12
ndtrong is on a distinguished road
Quote:
Originally Posted by babakflame View Post
Hey,

Its so hard for me to follow from this figure, can you describe what file did you change from primary interfoam and how?
Hi Bobi,

Thank you for your looking in my problem.
I am trying to build a couple level set vs vof methods (CLSVOF) to get new solver based on interFoam and also based on suggestions of Mr. Sankar
http://www.tfd.chalmers.se/~hani/kur...ankarMenon.pdf
In his code, he built new solver based on OpenFoam v2.3. I am using his declarations to make a new solver based on Foam v4.1. However, my code could not compile as you see in figure. I know that this is not simple by copy code from old version to new one. However, whenever I declare my variable, it alway shows errors like this. Could you please help me?

Thanks
ndtrong is offline   Reply With Quote

Old   July 25, 2017, 18:37
Default
  #4
Senior Member
 
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 15
babakflame is on a distinguished road
Hey

Now, I have better understanding.

I took a look at the file you uploaded. The best idea in these situations when you want to implement some modifications into new versions of OpenFOAM from previous ones is trying to be aware of template changes.

I mean for example, there are minor changes in syntaxes, that affects your compilation. first try to find samples of codes similar to what you want to add in your version and make your implementation format compatible with that.

Good Luck
babakflame is offline   Reply With Quote

Old   July 28, 2017, 22:57
Default
  #5
Senior Member
 
Nguyen Duy Trong
Join Date: Apr 2014
Posts: 124
Rep Power: 12
ndtrong is on a distinguished road
Quote:
Originally Posted by babakflame View Post
Hey

Now, I have better understanding.

I took a look at the file you uploaded. The best idea in these situations when you want to implement some modifications into new versions of OpenFOAM from previous ones is trying to be aware of template changes.

I mean for example, there are minor changes in syntaxes, that affects your compilation. first try to find samples of codes similar to what you want to add in your version and make your implementation format compatible with that.

Good Luck
Hi Bobi,

I am facing a new error came from OpenFoam in box v17.06.
The error is class Foam: Ioobject has no member name 'typeHeaderOk'

Do you know the reason and the way to overcome it?
Thanks
ndtrong is offline   Reply With Quote

Old   August 1, 2017, 13:13
Default
  #6
Member
 
Vu
Join Date: Nov 2016
Posts: 42
Rep Power: 9
DoQuocVu is on a distinguished road
Hi Trong,

Have you fixed your problem yet?

If not could you please upload your files that you've changed?

I'd like to give you a hand !
DoQuocVu is offline   Reply With Quote

Old   August 4, 2017, 02:20
Default
  #7
Senior Member
 
Nguyen Duy Trong
Join Date: Apr 2014
Posts: 124
Rep Power: 12
ndtrong is on a distinguished road
Quote:
Originally Posted by DoQuocVu View Post
Hi Trong,

Have you fixed your problem yet?

If not could you please upload your files that you've changed?

I'd like to give you a hand !
Hi Vu,

I could not fix problem, could you please help me?
I think it is better if we contact via email. Please give me your email or contact me at address: ndtrong@hotmail.com or ndtrong.khtn@gmail.com
ndtrong 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



All times are GMT -4. The time now is 13:37.