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

add heat equation to interFoam

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 17, 2015, 12:00
Unhappy add heat equation to interFoam
  #1
New Member
 
masoud paktinat
Join Date: Feb 2015
Posts: 2
Rep Power: 0
masoudpaktinat is on a distinguished road
hello dear friends
this is part of my code and when i run wmake to compile it , I encounter following error


Info<<"Readeng field T/n"<<endl;
volScalarField T
(
IOobject
(
"T"
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
);


error: expected primary-expression before ‘(’ token
(



error: expected ‘)’ before ‘runTime’
runTime.timeName(),
^
i will be so thankful if u know what should i do & help me ?
masoudpaktinat is offline   Reply With Quote

Old   February 17, 2015, 12:17
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Comma after "T"?
alexeym is offline   Reply With Quote

Old   February 17, 2015, 17:32
Red face
  #3
New Member
 
masoud paktinat
Join Date: Feb 2015
Posts: 2
Rep Power: 0
masoudpaktinat is on a distinguished road
Quote:
Originally Posted by alexeym View Post
Comma after "T"?
Oh thanks so much i can't believe this was the problem ;
maybe it's because of my poor knowledg of c++

know i have a new stuation when run wmake

Make/linux64GccDPOpt/myinterFoamDiabatic.o: In function `main':
myinterFoamDiabatic.C.text.startup+0x40c7): undefined reference to `Foam::incompressibleTwoPhaseMixture::kappaf() const'
collect2: error: ld returned 1 exit status
make: *** [/home/masoud/OpenFOAM/masoud-2.3.1/platforms/linux64GccDPOpt/bin/myinterFoamDiabatic] Error 1

??

I would be so glad if you can introduce to me some book or tutorial in advance openFoam & programing .
i couldn't find any in it's website .
masoudpaktinat is offline   Reply With Quote

Old   February 18, 2015, 04:40
Default
  #4
New Member
 
Andrew Smith
Join Date: Jan 2015
Location: North Dakota
Posts: 24
Rep Power: 11
Andrew_Sm is on a distinguished road
Quote:
Originally Posted by masoudpaktinat View Post
Oh thanks so much i can't believe this was the problem ;
maybe it's because of my poor knowledg of c++

know i have a new stuation when run wmake

Make/linux64GccDPOpt/myinterFoamDiabatic.o: In function `main':
myinterFoamDiabatic.C.text.startup+0x40c7): undefined reference to `Foam::incompressibleTwoPhaseMixture::kappaf() const'
collect2: error: ld returned 1 exit status
make: *** [/home/masoud/OpenFOAM/masoud-2.3.1/platforms/linux64GccDPOpt/bin/myinterFoamDiabatic] Error 1

??

I would be so glad if you can introduce to me some book or tutorial in advance openFoam & programing .
i couldn't find any in it's website .
My friend I am afraid there is no such information available. Any detailed information about OpenFOAM comes under NDA (refer https://en.wikipedia.org/wiki/Non-disclosure_agreement).

Check this
http://www.cfd-online.com/Forums/ope...-velocity.html
Andrew_Sm is offline   Reply With Quote

Old   February 19, 2015, 07:24
Default
  #5
New Member
 
Benjamin van den Akker
Join Date: Jun 2013
Posts: 3
Rep Power: 12
BenjAkker is on a distinguished road
Quote:
Originally Posted by Andrew_Sm View Post
My friend I am afraid there is no such information available. Any detailed information about OpenFOAM comes under NDA (refer https://en.wikipedia.org/wiki/Non-disclosure_agreement).

Check this
http://www.cfd-online.com/Forums/ope...-velocity.html
It seems that you misunderstood the conversation to which you linked. In no way does it imply anything of the sort.

In response to the original question: the official documentation provides much useful information regarding programming and code conventions, but I'm afraid it does require prior knowledge of and experience with C++.
BenjAkker is offline   Reply With Quote

Reply

Tags
openfoam implementation

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
InterFoam: Add an equation to only one phase voingiappone OpenFOAM Programming & Development 41 June 7, 2022 09:04
transient source term strakakl OpenFOAM 38 November 19, 2013 01:18
Dimension Error not while adding heat source with Heat Equation himanshu28 OpenFOAM Running, Solving & CFD 2 September 20, 2013 07:18
How can I add an equation of state for rho and cp ?? Canesin OpenFOAM Programming & Development 0 May 14, 2010 17:52
Latent heat introduced by the TEM1 equation? H.P.LIU Phoenics 1 January 11, 2001 10:03


All times are GMT -4. The time now is 02:48.