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

viscoelasticinterfoam installation error

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 18, 2013, 07:35
Default viscoelasticinterfoam installation error
  #1
New Member
 
thejaraju
Join Date: Dec 2010
Posts: 8
Rep Power: 6
thejaraju is on a distinguished road
Hi foamers

This theja from bangalore,

as i am working on the viscoelasticinterfoam to install this are the error generated during the installation

Code:
theja@theja:~/OpenFOAM/OpenFOAM-2.2.x/applications/solvers/viscoelasticInterFoam$ wmake && cd -
Making dependency list for source file viscoelasticInterFoam.C
SOURCE=viscoelasticInterFoam.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/home/theja/OpenFOAM/OpenFOAM-2.2.x/src/transportModels -I/home/theja/OpenFOAM/OpenFOAM-2.2.x/src/transportModels/incompressible/lnInclude -I/home/theja/OpenFOAM/OpenFOAM-2.2.x/src/transportModels/interfaceProperties/lnInclude -I/home/theja/OpenFOAM/OpenFOAM-2.2.x/src/meshTools/cellDist -I/home/theja/OpenFOAM/OpenFOAM-2.2.x/src/finiteVolume/fvMesh/wallDist -I/home/theja/OpenFOAM/OpenFOAM-2.2.x/src/finiteVolume/lnInclude -I./../viscoelasticTwoPhaseModels/lnInclude  -IlnInclude -I. -I/home/theja/OpenFOAM/OpenFOAM-2.2.x/src/OpenFOAM/lnInclude -I/home/theja/OpenFOAM/OpenFOAM-2.2.x/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/viscoelasticInterFoam.o
In file included from viscoelasticInterFoam.C:75:0:
alphaEqnSubCycle.H: In function ‘int main(int, char**)’:
alphaEqnSubCycle.H:3:15: error: ‘piso’ was not declared in this scope
/home/theja/OpenFOAM/OpenFOAM-2.2.x/src/finiteVolume/lnInclude/readPISOControls.H:3:15: warning: unused variable ‘nOuterCorr’ [-Wunused-variable]
/home/theja/OpenFOAM/OpenFOAM-2.2.x/src/finiteVolume/lnInclude/readPISOControls.H:15:16: warning: unused variable ‘transonic’ [-Wunused-variable]
/home/theja/OpenFOAM/OpenFOAM-2.2.x/src/finiteVolume/lnInclude/readPISOControls.H:3:15: warning: unused variable ‘nOuterCorr’ [-Wunused-variable]
/home/theja/OpenFOAM/OpenFOAM-2.2.x/src/finiteVolume/lnInclude/readPISOControls.H:6:15: warning: unused variable ‘nCorr’ [-Wunused-variable]
/home/theja/OpenFOAM/OpenFOAM-2.2.x/src/finiteVolume/lnInclude/readPISOControls.H:12:16: warning: unused variable ‘momentumPredictor’ [-Wunused-variable]
/home/theja/OpenFOAM/OpenFOAM-2.2.x/src/finiteVolume/lnInclude/readPISOControls.H:15:16: warning: unused variable ‘transonic’ [-Wunused-variable]
/home/theja/OpenFOAM/OpenFOAM-2.2.x/src/finiteVolume/lnInclude/readTimeControls.H:38:8: warning: unused variable ‘maxDeltaT’ [-Wunused-variable]
make: *** [Make/linux64GccDPOpt/viscoelasticInterFoam.o] Error 1
theja@theja:~/OpenFOAM/OpenFOAM-2.2.x/applications/solvers/viscoelasticInterFoam$ ^C
theja@theja:~/OpenFOAM/OpenFOAM-2.2.x/applications/solvers/viscoelasticInterFoam$
So please help me in sorting out the error

Thanking you in advance

Thejaraju

Last edited by wyldckat; December 25, 2013 at 14:07. Reason: Added [CODE][/CODE]
thejaraju is offline   Reply With Quote

Old   December 25, 2013, 14:30
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi thejaraju,

Without access to the source code, it's a bit complicated to help you.

Nonetheless, given the error message, it seems that the problem is related to a change made in the way the "piso" variable was created in the past in older OpenFOAM versions and how it is created now in the current versions.

For example, if I run this command from the "~/OpenFOAM" folder, where I have all of my installations:
Code:
diff -Nur OpenFOAM-1.7.x/src/finiteVolume/cfdTools/general/include/readPISOControls.H OpenFOAM-2.2.x/src/finiteVolume/cfdTools/general/include/readPISOControls.H
I get this output:
Code:
--- OpenFOAM-1.7.x/src/finiteVolume/cfdTools/general/include/readPISOControls.H    2010-10-31 11:54:06.000000000 +0000
+++ OpenFOAM-2.2.x/src/finiteVolume/cfdTools/general/include/readPISOControls.H    2013-03-09 23:25:49.000000000 +0000
@@ -1,15 +1,17 @@
-    dictionary piso = mesh.solutionDict().subDict("PISO");
+    const dictionary& pisoDict = mesh.solutionDict().subDict("PISO");
 
-    int nCorr(readInt(piso.lookup("nCorrectors")));
+    const int nOuterCorr =
+        pisoDict.lookupOrDefault<int>("nOuterCorrectors", 1);
 
-    int nNonOrthCorr =
-        piso.lookupOrDefault<int>("nNonOrthogonalCorrectors", 0);
+    const int nCorr =
+        pisoDict.lookupOrDefault<int>("nCorrectors", 1);
 
-    bool momentumPredictor =
-        piso.lookupOrDefault<Switch>("momentumPredictor", true);
+    const int nNonOrthCorr =
+        pisoDict.lookupOrDefault<int>("nNonOrthogonalCorrectors", 0);
 
-    bool transonic =
-        piso.lookupOrDefault<Switch>("transonic", false);
+    const bool momentumPredictor =
+        pisoDict.lookupOrDefault("momentumPredictor", true);
+
+    const bool transonic =
+        pisoDict.lookupOrDefault("transonic", false);
 
-    int nOuterCorr =
-        piso.lookupOrDefault<int>("nOuterCorrectors", 1);
As you can see, the variable name "piso" has been changed to "pisoDict". Similarly, several other variables were renamed as well, as shown in the comparison of lines that start with a minus "-" and those with a plus "+".

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   April 13, 2015, 14:02
Unhappy ???\
  #3
New Member
 
arash
Join Date: Jan 2015
Posts: 14
Rep Power: 2
arash.heidarian is on a distinguished road
what is gamma in this solver?
arash.heidarian is offline   Reply With Quote

Old   April 16, 2015, 03:55
Default
  #4
New Member
 
Sasa Goran
Join Date: Feb 2015
Location: Japan
Posts: 20
Rep Power: 2
Supersale is on a distinguished road
Quote:
Originally Posted by arash.heidarian View Post
what is gamma in this solver?
I think this is the liquid phase? alpha1 in newer versions
Supersale is offline   Reply With Quote

Old   April 17, 2015, 10:22
Default
  #5
New Member
 
arash
Join Date: Jan 2015
Posts: 14
Rep Power: 2
arash.heidarian is on a distinguished road
thank you..
yes it is alpha1...
my problem is how adjust the transportproperties file...
arash.heidarian is offline   Reply With Quote

Old   April 19, 2015, 20:39
Default
  #6
New Member
 
Sasa Goran
Join Date: Feb 2015
Location: Japan
Posts: 20
Rep Power: 2
Supersale is on a distinguished road
I have found one case file for this solver on sourceforge (http://sourceforge.net/projects/viscoelasticof/). In this case file the transportProperties file is the same as for interFoam, but there is a viscoelasticProperties file. If you happen to have another case file for this solver, please share as i, too, am struggling to make sense of all of this
Supersale is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
an error in Calculator's equation immortality OpenFOAM Paraview & paraFoam 11 September 3, 2013 16:18
Problem running perturbUCyl sen.1986 OpenFOAM 14 March 23, 2012 05:12
attach/detach (valve opening/closing) phsieh2005 OpenFOAM Running, Solving & CFD 2 March 21, 2009 06:18
How to get the max value of the whole field waynezw0618 OpenFOAM Running, Solving & CFD 4 June 17, 2008 05:07
user defined function cfduser CFX 0 April 29, 2006 10:58


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