CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   multiphaseEulerFoamNEW: command not found (https://www.cfd-online.com/Forums/openfoam-programming-development/132147-multiphaseeulerfoamnew-command-not-found.html)

maybee March 26, 2014 11:32

multiphaseEulerFoamNEW: command not found
 
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

wyldckat March 26, 2014 15:34

Quick answer: http://openfoamwiki.net/index.php/Ho...ure_to_icoFoam -> "Make/files"

maybee March 26, 2014 16:05

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?

wyldckat March 26, 2014 16:11

  1. What is the content of your file "Make/files"?
  2. What is the output of the following commands:
    Code:

    wclean
    wmake


maybee March 27, 2014 14:38

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]


ngj March 27, 2014 15:35

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

maybee March 27, 2014 15:57

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!

maybee March 28, 2014 03:51

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?

wyldckat April 5, 2014 16:55

Greetings to all!

@maybee:
Quote:

Originally Posted by maybee (Post 482596)
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

maybee April 6, 2014 05:08

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


All times are GMT -4. The time now is 21:31.