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

Custom Solver error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 5, 2019, 00:55
Default Custom Solver error
  #1
New Member
 
Sreekar Reddy S
Join Date: Mar 2019
Posts: 3
Rep Power: 7
sree.- is on a distinguished road
Hi
I am trying to use OpenFOAM in windows subsystem lately and learnt some basics on solving tutorials and my own geometry. But I wanted to create my own solver to solve the solidification problem for my thesis.
So, I copied all the solver files to the $HOME/OpenFOAM/OpenFOAM-4.x/applications/solvers/multiphase/solidificationFoam.

Now when I run wmake after running wclean in root mode it is showing up some errors.


Code:
root@SREE:~/OpenFOAM/OpenFOAM-4.x/applications/solvers/multiphase/solidificationFoam# wmake
/home/sree/OpenFOAM/OpenFOAM-4.x/applications/solvers/multiphase/solidificationFoam
Making dependency list for source file BCs/robinTemperatureFvPatchScalarField.C
could not open file mixedFvPatchFields.H for source file BCs/robinTemperatureFvPatchScalarField.C due to No such file or directory
could not open file fvPatchFieldMapper.H for source file BCs/robinTemperatureFvPatchScalarField.C due to No such file or directory
could not open file volFields.H for source file BCs/robinTemperatureFvPatchScalarField.C due to No such file or directory
Making dependency list for source file solidificationFoam.C
could not open file fvCFD.H for source file solidificationFoam.C due to No such file or directory
could not open file solidificationSystem.H for source file solidificationFoam.C due to No such file or directory
could not open file fvOptions.H for source file solidificationFoam.C due to No such file or directory
could not open file pimpleControl.H for source file solidificationFoam.C due to No such file or directory
could not open file createControl.H for source file solidificationFoam.C due to No such file or directory
could not open file compressibleCreatePhi.H for source file solidificationFoam.C due to No such file or directory
could not open file readGravitationalAcceleration.H for source file solidificationFoam.C due to No such file or directory
could not open file readhRef.H for source file solidificationFoam.C due to No such file or directory
could not open file gh.H for source file solidificationFoam.C due to No such file or directory
could not open file createMRF.H for source file solidificationFoam.C due to No such file or directory
could not open file createFvOptions.H for source file solidificationFoam.C due to No such file or directory
could not open file createTimeControls.H for source file solidificationFoam.C due to No such file or directory
could not open file readTimeControls.H for source file solidificationFoam.C due to No such file or directory
could not open file CourantNo.H for source file solidificationFoam.C due to No such file or directory
could not open file setDeltaT.H for source file solidificationFoam.C due to No such file or directory
g++ -std=c++0x -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3  -DNoRepository -ftemplate-depth-100  -IlnInclude -I. -I/home/sree/OpenFOAM/OpenFOAM-4.x/src/OpenFOAM/lnInclude -I/home/sree/OpenFOAM/OpenFOAM-4.x/src/OSspecific/POSIX/lnInclude   -fPIC -c solidificationFoam.C -o /home/sree/OpenFOAM/OpenFOAM-4.x/platforms/linux64Gcc48DPInt32Opt/applications/solvers/multiphase/solidificationFoam/solidificationFoam.o
solidificationFoam.C:38:19: fatal error: fvCFD.H: No such file or directory
 #include "fvCFD.H"
                   ^
compilation terminated.
/home/sree/OpenFOAM/OpenFOAM-4.x/wmake/rules/General/transform:8: recipe for target '/home/sree/OpenFOAM/OpenFOAM-4.x/platforms/linux64Gcc48DPInt32Opt/applications/solvers/multiphase/solidificationFoam/solidificationFoam.o' failed
make: *** [/home/sree/OpenFOAM/OpenFOAM-4.x/platforms/linux64Gcc48DPInt32Opt/applications/solvers/multiphase/solidificationFoam/solidificationFoam.o] Error 1

It says directory not found but i rechecked and all the solver files are in right location.



I am using ubuntu in windows 10 so don't understand where the problem is. Please help me, I need to figure this out as soon as possible.
sree.- is offline   Reply With Quote

Old   June 21, 2019, 17:05
Default
  #2
New Member
 
Romulo Heringer
Join Date: Jul 2009
Posts: 8
Rep Power: 17
rheringer is on a distinguished road
Hi Sree,


Try compile it in OpenFOAM 6.
rheringer is offline   Reply With Quote

Reply

Tags
custom solver, openfoam 4.x


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
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 46 March 6, 2022 14:21
fluent divergence for no reason sufjanst FLUENT 2 March 23, 2016 17:08
[swak4Foam] groovyBC: problems compiling: "flex: not found" and "undefined reference to ..." sega OpenFOAM Community Contributions 12 February 17, 2010 10:30
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 11:23
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


All times are GMT -4. The time now is 13:16.