|
[Sponsors] |
February 17, 2015, 13:00 |
add heat equation to interFoam
|
#1 |
New Member
masoud paktinat
Join Date: Feb 2015
Posts: 2
Rep Power: 0 |
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 ? |
|
February 17, 2015, 13:17 |
|
#2 |
Senior Member
|
Comma after "T"?
|
|
February 17, 2015, 18:32 |
|
#3 |
New Member
masoud paktinat
Join Date: Feb 2015
Posts: 2
Rep Power: 0 |
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 . |
|
February 18, 2015, 05:40 |
|
#4 | |
New Member
Andrew Smith
Join Date: Jan 2015
Location: North Dakota
Posts: 24
Rep Power: 11 |
Quote:
Check this http://www.cfd-online.com/Forums/ope...-velocity.html |
||
February 19, 2015, 08:24 |
|
#5 | |
New Member
Benjamin van den Akker
Join Date: Jun 2013
Posts: 3
Rep Power: 13 |
Quote:
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++. |
||
Tags |
openfoam implementation |
|
|
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 10:04 |
transient source term | strakakl | OpenFOAM | 38 | November 19, 2013 02:18 |
Dimension Error not while adding heat source with Heat Equation | himanshu28 | OpenFOAM Running, Solving & CFD | 2 | September 20, 2013 08:18 |
How can I add an equation of state for rho and cp ?? | Canesin | OpenFOAM Programming & Development | 0 | May 14, 2010 18:52 |
Latent heat introduced by the TEM1 equation? | H.P.LIU | Phoenics | 1 | January 11, 2001 11:03 |