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

fatal error: createAlphaFluxes.H: No such file or directory

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

Like Tree9Likes
  • 9 Post By t.teschner

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 29, 2019, 00:56
Question fatal error: createAlphaFluxes.H: No such file or directory
  #1
New Member
 
@moon
Join Date: Apr 2019
Posts: 8
Rep Power: 6
TRIDEV G is on a distinguished road
Hi everyone

Iam trying to edit the compressibleInterfoam (Multiphase) solver to add time dependent acceleration to my case. On executing wmake i get the following error "fatal error: createAlphaFluxes.H: No such file or directory"

In order to check if the error is due to the editing done to the .c file, I tried compiling the compressibleInterFoam solver by changing its name to compressibleInterFoam_trial. I still get the same error.
Can someone help me in this regard.

Any inputs are highly apreciated.

Thank You
TRIDEV G is offline   Reply With Quote

Old   April 29, 2019, 01:29
Default
  #2
Senior Member
 
Tom-Robin Teschner
Join Date: Dec 2011
Location: Cranfield, UK
Posts: 204
Rep Power: 16
t.teschner is on a distinguished road
well, the error message says it can't find the file, so that is the issue. Even though you can see the file, it doesn't mean the compiler can (it needs to be told where it is).


So the first thing you need to do is to locate the createAlphaFluxes.H file. I assume it is not inside your workfolder (the one containing your actual *.C file(s) and the Make folder, the compiler searches here by default).


Once you have the file located there are two options: The easy one is to simply copy the file into your workfolder so the compiler can find it here (this is, however, not good programming practice), the second option (and preferred one) is to include the path to the file during compilation. For that you have to add the folder location to your EXE_INC variable in the options file within the Make folder, which might look something like

Code:
EXE_INC = \ 
  -I$(LIB_SRC)/finiteVolume/lnInclude
To add yours, add your path below the last line and add a \ at the end of the previous line. There is one file called createAlphaFluxes.H in $(FOAM_APP)/solvers/multiphase/VoF, so assuming this is the file you want just add that to your path and it would become

Code:
EXE_INC = \ 

  -I$(LIB_SRC)/finiteVolume/lnInclude \
  -I$(FOAM_APP)/solvers/multiphase/VoF
t.teschner is offline   Reply With Quote

Old   April 29, 2019, 07:55
Default
  #3
New Member
 
@moon
Join Date: Apr 2019
Posts: 8
Rep Power: 6
TRIDEV G is on a distinguished road
Hello t.teschner

Thanks for the detailed description. The modified solver seems to work fine
Thank you
TRIDEV G is offline   Reply With Quote

Reply

Tags
compilation error, wmake error

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
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 03:30
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 tlcoons OpenFOAM Installation 13 April 20, 2016 17:34
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 03:23
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 10:23
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 11:46


All times are GMT -4. The time now is 22:40.