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

multiphaseEulerFoamNEW: command not found

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 26, 2014, 12:32
Default multiphaseEulerFoamNEW: command not found
  #1
Senior Member
 
Join Date: Jan 2012
Posts: 159
Rep Power: 6
maybee is on a distinguished road
hi,

I tried to run my modified multiphaseEulerFoam solver "multiphaseEulerFoamNEW". After running blockMesh successfully in my case directory I tried to run "multiphaseEulerFoamNEW" "multiphaseEulerFoamNEW, but only get the output:

Code:
multiphaseEulerFoamNEW: command not found
I thought renaming "multiphaseEulerFoam.C" to "multiphaseEulerFoamNEW.C" would work when I try to run the new solver. What else do I have to change/include ?

greetings
maybee
maybee is offline   Reply With Quote

Old   March 26, 2014, 16:34
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,745
Blog Entries: 39
Rep Power: 103
wyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of light
Quick answer: http://openfoamwiki.net/index.php/Ho...ure_to_icoFoam -> "Make/files"
wyldckat is offline   Reply With Quote

Old   March 26, 2014, 17:05
Default
  #3
Senior Member
 
Join Date: Jan 2012
Posts: 159
Rep Power: 6
maybee is on a distinguished road
hi, I have done as described in chapter 2 of the link, but when using command

Code:
ls $FOAM_USER_APPBIN
after running "wmake" without errors I get

Code:
USER@USER-VPCEA25EC:~/SolverNEW$ ls $FOAM_USER_APPBIN
ls: cannot access /home/USER/OpenFOAM/engineer-2.2.2/platforms/linuxGccDPOpt/bin: No such file or directory
and I still can't execute the new solver "multiphaseEulerFoamNEW" getting the error described in my first post?
maybee is offline   Reply With Quote

Old   March 26, 2014, 17:11
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,745
Blog Entries: 39
Rep Power: 103
wyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of light
  1. What is the content of your file "Make/files"?
  2. What is the output of the following commands:
    Code:
    wclean
    wmake
wyldckat is offline   Reply With Quote

Old   March 27, 2014, 15:38
Default
  #5
Senior Member
 
Join Date: Jan 2012
Posts: 159
Rep Power: 6
maybee is on a distinguished road
1.
Code:
multiphaseEulerFoamNEW.C

EXE = $(FOAM_USER_APPBIN)/multiphaseEulerFoamNEW
2.

Code:
USER@USER-VPCEA25EC:~$ cd SolverNEW
USER@USER-VPCEA25EC:~/SolverNEW$ wclean
USER@USER-VPCEA25EC:~/SolverNEW$ wmake
Making dependency list for source file multiphaseEulerFoamNEW.C
SOURCE=multiphaseEulerFoamNEW.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IphaseModel/lnInclude -ImultiphaseSystem/lnInclude -ImultiphaseFixedFluxPressure -IinterfacialModels/lnInclude -I/home/USER/OpenFOAM/OpenFOAM-2.2.2/src/transportModels -I/home/USER/OpenFOAM/OpenFOAM-2.2.2/src/transportModels/incompressible/lnInclude -I/home/USER/OpenFOAM/OpenFOAM-2.2.2/src/transportModels/interfaceProperties/lnInclude -I/home/USER/OpenFOAM/OpenFOAM-2.2.2/src/transportModels/incompressible/lnInclude -I/home/USER/OpenFOAM/OpenFOAM-2.2.2/src/transportModels/incompressible/singlePhaseTransportModel -I/home/USER/OpenFOAM/OpenFOAM-2.2.2/src/turbulenceModels -I/home/USER/OpenFOAM/OpenFOAM-2.2.2/src/turbulenceModels/incompressible/LES/LESModel -I/home/USER/OpenFOAM/OpenFOAM-2.2.2/src/turbulenceModels/LES/LESdeltas/lnInclude -I/home/USER/OpenFOAM/OpenFOAM-2.2.2/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/USER/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/home/USER/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/multiphaseEulerFoamNEW.o
In file included from multiphaseEulerFoamNEW.C:92:0:
NEWValues.H: In function ‘int main(int, char**)’:
NEWValues.H:100:17: warning: unused variable ‘alpha’ [-Wunused-variable]
In file included from NEWValues.H:133:0,
                 from multiphaseEulerFoamNEW.C:92:
NEW_MomentsTransportEqns.H:8:27: warning: unused variable ‘alpha’ [-Wunused-variable]
/home/USER/OpenFOAM/OpenFOAM-2.2.2/src/finiteVolume/lnInclude/readTimeControls.H:38:8: warning: unused variable ‘maxDeltaT’ [-Wunused-variable]

Last edited by maybee; March 27, 2014 at 16:56.
maybee is offline   Reply With Quote

Old   March 27, 2014, 16:35
Default
  #6
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,713
Rep Power: 27
ngj will become famous soon enoughngj will become famous soon enough
Good evening,

Well, your file reads

Code:
$(FOAM_engineer_APPBIN)
and not

Code:
$(FOAM_USER_APPBIN)
This is likely the error. Furthermore, you have not posted all of the compilation process.

Kind regards,

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   March 27, 2014, 16:57
Default
  #7
Senior Member
 
Join Date: Jan 2012
Posts: 159
Rep Power: 6
maybee is on a distinguished road
Sorry, my fault - edited the last post. It s
Code:
$(FOAM_USER_APPBIN)
Furthermore I have posted all of the terminal output.

EDIT: Hey again, I tried noch running blockMesh in the basic tutorial case "cavity" and I get the error:

Quote:
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.2 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.2.2-9739c53ec43f
Exec : blockMesh
Date : Mar 28 2014
Time : 08:53:21
Host : "USER-VPCEA25EC"
PID : 4053
fileName::stripInvalid() called for invalid fileName /home/USER/OpenFOAMTutorials/run/tutorials/incompressible/icoFoam/cavity
For debug level (= 2) > 1 this is considered fatal
Aborted (core dumped)
USER@USER-VPCEA25EC:~/OpenFOAM Tutorials/run/tutorials/incompressible/icoFoam/cavity$
?

EDIT2: Ok, fixed the problem with blockMesh - just had to remove a blank space within a folder name that was part of the case path!

Last edited by maybee; March 28, 2014 at 04:11.
maybee is offline   Reply With Quote

Old   March 28, 2014, 04:51
Default
  #8
Senior Member
 
Join Date: Jan 2012
Posts: 159
Rep Power: 6
maybee is on a distinguished road
Hi again, here are some new information. When building my project with Qt Creator I get:

Code:
09:42:10: Running build steps for project SolverNEW...
09:42:10: Starting: "/home/USER/OpenFOAM/OpenFOAM-2.2.2/bin/foamExec" wmake
Making dependency list for source file multiphaseEulerFoamNEW.C
SOURCE=multiphaseEulerFoamNEW.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IphaseModel/lnInclude -ImultiphaseSystem/lnInclude -ImultiphaseFixedFluxPressure -IinterfacialModels/lnInclude -I/home/USER/OpenFOAM/OpenFOAM-2.2.2/src/transportModels -I/home/USER/OpenFOAM/OpenFOAM-2.2.2/src/transportModels/incompressible/lnInclude -I/home/USER/OpenFOAM/OpenFOAM-2.2.2/src/transportModels/interfaceProperties/lnInclude -I/home/USER/OpenFOAM/OpenFOAM-2.2.2/src/transportModels/incompressible/lnInclude -I/home/USER/OpenFOAM/OpenFOAM-2.2.2/src/transportModels/incompressible/singlePhaseTransportModel -I/home/USER/OpenFOAM/OpenFOAM-2.2.2/src/turbulenceModels -I/home/USER/OpenFOAM/OpenFOAM-2.2.2/src/turbulenceModels/incompressible/LES/LESModel -I/home/USER/OpenFOAM/OpenFOAM-2.2.2/src/turbulenceModels/LES/LESdeltas/lnInclude -I/home/USER/OpenFOAM/OpenFOAM-2.2.2/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/USER/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/home/USER/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/multiphaseEulerFoamNEW.o
In file included from multiphaseEulerFoamNEW.C:92:0:
NEWValues.H: In function ‘int main(int, char**)’:
NEWValues.H:100:17: warning: unused variable ‘alpha’ [-Wunused-variable]
In file included from NEWValues.H:133:0,
                 from multiphaseEulerFoamNEW.C:92:
NEW_MomentsTransportEqns.H:8:27: warning: unused variable ‘alpha’ [-Wunused-variable]
/home/USER/OpenFOAM/OpenFOAM-2.2.2/src/finiteVolume/lnInclude/readTimeControls.H:38:8: warning: unused variable ‘maxDeltaT’ [-Wunused-variable]
mkdir: cannot create directory `': No such file or directory
make: *** [/multiphaseEulerFoamNEW] Error 1
09:42:41: The process "/home/USER/OpenFOAM/OpenFOAM-2.2.2/bin/foamExec" exited with code 2.
Error while building project SolverNEW (target: Desktop)
When executing build step 'Custom Process Step'
Perhaps this shows the root of the problem?
maybee is offline   Reply With Quote

Old   April 5, 2014, 16:55
Default
  #9
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,745
Blog Entries: 39
Rep Power: 103
wyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of light
Greetings to all!

@maybee:
Quote:
Originally Posted by maybee View Post
Perhaps this shows the root of the problem?
Start a new terminal window and run these commands inside it:
Code:
/home/$USER/OpenFOAM/OpenFOAM-2.2.2/bin/foamExec bash
echo $FOAM_USER_APPBIN
mkdir -p $FOAM_USER_APPBIN
What did they give you?

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   April 6, 2014, 05:08
Default
  #10
Senior Member
 
Join Date: Jan 2012
Posts: 159
Rep Power: 6
maybee is on a distinguished road
Hi,

sorry for the late answer, but my colleague solved the problem. I don't know what he did exactly though. Thx for the help anyway - I just forgot about the post. Unfortunately I can't tell how the problem was solved.

greetings
maybee
maybee 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
Installing OpenFoam on windows 7-64 Dadou OpenFOAM Installation on Windows, Mac and other Unsupported Platforms 10 February 11, 2014 17:20
injection problem Mark New FLUENT 0 August 4, 2013 01:30
missing vtf3.h BPatch.h papi.h linch OpenFOAM Installation 41 July 24, 2012 14:45
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 08:21
Problems Installing OF 1.6 32 bit bucksfan OpenFOAM Installation 19 August 4, 2009 01:36


All times are GMT -4. The time now is 06:57.