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

[Other] Difficulties to compile aerosolved in openfoam 1712, 1912

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

Like Tree6Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 3, 2020, 02:10
Default Difficulties to compile aerosolved in openfoam 1712, 1912
  #1
New Member
 
parth
Join Date: Feb 2020
Posts: 23
Rep Power: 6
parthigcar is on a distinguished road
Hello, foamers,

I am quite new to OpenFoam. I learned to run a few example cases. For my work, aerosol dynamics is necessary. This is provided by aerosolved (aerosolEulerFoam solver). The link for aerosolved is as below:

https://github.com/pmpsa-cfd/aerosolved

I tried to compile the program however, following two lines of Allwmake is creating errors:
Quote:
wmake libso libraries/aerosolThermo
Quote:
wmake libso libraries/aerosolModels
Initially, I thought it might be the OpenFoam version, so I downgrade from 1912 to 1712. However, still, I am getting similar errors. I have attached the error log. I am having really hard time what it hash table pointer.
parthigcar is offline   Reply With Quote

Old   February 6, 2020, 09:01
Default
  #2
New Member
 
Join Date: May 2013
Posts: 1
Rep Power: 0
EdoF is on a distinguished road
The current 2.0 version of AeroSolved only compiles against OpenFOAM-v1812 and OpenFOAM-v1906. You were unlucky with your choice of OpenFOAM versions ;-)


Soon we will release version 2.1 which will probably support also OpenFOAM Foundation versions. You can follow the AeroSolved developments at Github.
francescomarra likes this.
EdoF is offline   Reply With Quote

Old   February 6, 2020, 21:39
Default
  #3
New Member
 
parth
Join Date: Feb 2020
Posts: 23
Rep Power: 6
parthigcar is on a distinguished road
Hi, Thank you for your reply. I tried with OpenFOAM-v1812 now I am able to compile.
parthigcar is offline   Reply With Quote

Old   February 7, 2020, 12:59
Default
  #4
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
Hey EdoF,

Why don't you release "aerosolved" as a submodule in OpenFOAM? Which would be win-win for users and your software?

Recently OpenQBMM is released as a submodule there.

I would just create a feature request in GitLab, the guys are pretty open and flexible in mind.
HPE is offline   Reply With Quote

Old   September 19, 2020, 04:01
Default
  #5
New Member
 
Piyush
Join Date: Sep 2020
Posts: 12
Rep Power: 5
Piyush25 is on a distinguished road
HI,
I am running OpenFoam v2006 using ubuntu bash in windows 10. I also downloaded Aerosolved from github and copied it in the OpenFoam file and installed it using "sudo make" command.
Now I'm currently trying to run a tutorial of Aerosolved (bent pipe) and while executing Allrun, it throws me an error.
Is it because I'm using the newest version of OpenFoam? Should I delete this version and install OpenFoam verision 1906?

Last edited by Piyush25; September 30, 2020 at 01:32.
Piyush25 is offline   Reply With Quote

Old   September 19, 2020, 12:13
Default
  #6
Senior Member
 
Join Date: Oct 2017
Posts: 121
Rep Power: 8
Krapf is on a distinguished road
Quote:
Originally Posted by Piyush25 View Post
Should I delete this version and install OpenFoam verision 1906?
Yes, see section "Dependencies": https://github.com/pmpsa-cfd/aerosol...Chap1_About.md. There seems to have been no update since EdoF's post.
parthigcar and Piyush25 like this.
Krapf is offline   Reply With Quote

Old   September 20, 2020, 05:22
Default
  #7
New Member
 
Piyush
Join Date: Sep 2020
Posts: 12
Rep Power: 5
Piyush25 is on a distinguished road
Hi, I installed OpenFoam-v1906 on my Ubuntu 18.04 LTS (bash).
Now I'm getting a lot of errors while installing aerosolved. Please have a look...

piyush@LAPTOP-QSMI8GI5:/opt/OpenFOAM/OpenFOAM-v1906/aerosolved-master$ make
./Allwmake
./Allwmake: line 3: wmake: command not found
./Allwmake: line 5: wmakeLnInclude: command not found
./Allwmake: line 6: wmake: command not found
./Allwmake: line 8: wmake: command not found
./Allwmake: line 9: wmake: command not found
./Allwmake: line 11: wmake: command not found
Makefile:6: recipe for target 'compile' failed
make: *** [compile] Error 127

UPDATE: Same Installation problems also in ubuntu.

Last edited by Piyush25; September 30, 2020 at 01:51.
Piyush25 is offline   Reply With Quote

Old   September 20, 2020, 07:16
Default
  #8
Senior Member
 
Join Date: Oct 2017
Posts: 121
Rep Power: 8
Krapf is on a distinguished road
I'm not able to help you, but if you search the web for "wmake: command not found" you will find some hints.
Krapf is offline   Reply With Quote

Old   September 21, 2020, 06:40
Default
  #9
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,684
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by Piyush25 View Post
Hi, I installed OpenFoam-v1906 on my Ubuntu 18.04 LTS (bash).
Now I'm getting a lot of errors while installing aerosolved. Please have a look...

piyush@LAPTOP-QSMI8GI5:/opt/OpenFOAM/OpenFOAM-v1906/aerosolved-master$ make
./Allwmake
./Allwmake: line 3: wmake: command not found
./Allwmake: line 5: wmakeLnInclude: command not found
./Allwmake: line 6: wmake: command not found
./Allwmake: line 8: wmake: command not found
./Allwmake: line 9: wmake: command not found
./Allwmake: line 11: wmake: command not found
Makefile:6: recipe for target 'compile' failed
make: *** [compile] Error 127


Please Help!

Try using a pre-compiled package for 1912 or 2006:


https://develop.openfoam.com/Develop...ompiled/debian
olesen is offline   Reply With Quote

Old   September 21, 2020, 12:09
Default Thanks for your help :)
  #10
New Member
 
Piyush
Join Date: Sep 2020
Posts: 12
Rep Power: 5
Piyush25 is on a distinguished road
Hi guys,
I tried everything but nothing seems to work.
Now it is throwing me many fatal errors . One such errors is shown below:

/opt/OpenFOAM/ThirdParty-v1812/platforms/linux64/gcc-6.3.0/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/os_defines.h:39:22: fatal error: features.h: No such file or directory.
Lastly, I guess this is because I'm using Ubuntu bash in Windows 10. I might switch to linux.

UPDATE: Same Installation problems also in ubuntu.

Last edited by Piyush25; September 30, 2020 at 01:40.
Piyush25 is offline   Reply With Quote

Old   October 3, 2020, 13:17
Default Allrun is unable to execute
  #11
New Member
 
Piyush
Join Date: Sep 2020
Posts: 12
Rep Power: 5
Piyush25 is on a distinguished road
When we try to execute the Allrun script using the command :
./Allrun fullStokes sectional

The script is throwing the syntax error issue. I Tried to remove the if condition and directly kept the value present in else condition, removed if else condition itself then also did not work properly.

Can You kindly confirm why the shell script is unable to run.

piyush@LAPTOP-QSMI8GI5:~/OpenFOAM/piyush-v1812/aerosolved/cases/bentPipe_BC$ ./Allrun fullStokes sectional
./Allrun: 19: ./Allrun: Syntax error: "(" unexpected (expecting "then")
piyush@LAPTOP-QSMI8GI5:~/OpenFOAM/piyush-v1812/aerosolved/cases/bentPipe_BC$ ^C
Piyush25 is offline   Reply With Quote

Old   October 6, 2020, 11:14
Default
  #12
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,684
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
I took a quick look and made a few changes to compile with OpenFOAM-v2006, should also work with slightly older versions

Here is the merge request: https://github.com/pmpsa-cfd/aerosolved/pull/3

Also took a very quick look at some of the Allrun scripts, seeing as at least one user reported problems. As far as I can see there are no intrinsic issues, but many of the scripts to expect additional arguments for input. If these are missing you will see a script syntax errors. The scripts could be made more robust, but for now you will have to read them to see if you are using them as the developer expected.
parthigcar and Melbournite like this.
olesen is offline   Reply With Quote

Old   October 7, 2020, 01:01
Default
  #13
New Member
 
parth
Join Date: Feb 2020
Posts: 23
Rep Power: 6
parthigcar is on a distinguished road
@olesen, yes, I have tested for 1906, it was working. Also, the allrun scripts for the bend pipe are working fine.
parthigcar is offline   Reply With Quote

Old   October 7, 2020, 04:14
Default Condensation Model
  #14
New Member
 
Piyush
Join Date: Sep 2020
Posts: 12
Rep Power: 5
Piyush25 is on a distinguished road
Hello,
I somehow got aerosolved working and bentPipe is working fine too. Thanks for the guidance

Now i want to model condensation.

So in aerosolProperties, i changed the condensation model from none to coupled.

submodels
{
condensation
{
type coupled;
}


nucleation
{
type none;
}

coalescence
{
type none;
}

driftFluxModel
{
diffusion
{
type none;
}

Brownian
{
type StokesEinstein;
}

inertial
{
type fullStokes;
tolerance 1E-6;
maxIter 3;
VMax 10.0;
}
}
}

NO OTHER CHANGES ARE MADE in any files

Getting some errors:
[7] --> FOAM FATAL IO ERROR:
[7] Entry 'activityCoeff' not found in dictionary "IOstream.submodels.condensation"
[7]
[7] file: IOstream.submodels.condensation
[7]
[7] From function const Foam::dictionary& Foam::dictionary::subDict(const Foam::word&) const
[7] in file db/dictionary/dictionary.C at line 476.
[7]
FOAM parallel run exiting

Does anyone know what is the problem??
Piyush25 is offline   Reply With Quote

Old   October 7, 2020, 05:47
Default
  #15
New Member
 
parth
Join Date: Feb 2020
Posts: 23
Rep Power: 6
parthigcar is on a distinguished road
@Piyush, there is no problem in the code. You are not defining sufficient parameter required for that option.

Quote:
[7] Entry 'activityCoeff' not found in dictionary "IOstream.submodels.condensation"
This message means you have not defined activityCoeff in the dictionary condensation.
parthigcar is offline   Reply With Quote

Old   October 7, 2020, 07:16
Default Thanks for your help :)
  #16
New Member
 
Piyush
Join Date: Sep 2020
Posts: 12
Rep Power: 5
Piyush25 is on a distinguished road
Ok, Sir.
Can you suggest any good documentation on aerosolved? The documentation they provided in github contains very little information, I feel.
Thank you
Piyush25 is offline   Reply With Quote

Old   November 3, 2020, 09:51
Default problem with thermotype in BentPipe (AeroSolved)
  #17
New Member
 
Piyush
Join Date: Sep 2020
Posts: 12
Rep Power: 5
Piyush25 is on a distinguished road
Hi, I'm also trying to run aerosolved in different PC and all the tutorial cases run fine but there is a problem with bentPipe case. When I tried to run the default case, the following error is shown:

[1] --> FOAM FATAL ERROR:
[1] Unknown rhoAerosolPhaseThermo type
thermoType
{
type heAerosolRhoThermo;
mixture aerosolPhase;
transport const;
thermo hConst;
energy sensibleInternalEnergy;
equationOfState perfectGas;
specie specie;
}


Valid rhoAerosolPhaseThermo types are:

heAerosolRhoThermo aerosolPhase const eConst incompressiblePerfectGas specie sensibleInternalEnergy

heAerosolRhoThermo aerosolPhase const eConst perfectGas specie sensibleInternalEnergy
heAerosolRhoThermo aerosolPhase const hConst icoFunction specie sensibleInternalEnergy
heAerosolRhoThermo aerosolPhase const hConst icoPolynomial specie sensibleInternalEnergy
heAerosolRhoThermo aerosolPhase const hConst perfectFluid specie sensibleInternalEnergy
heAerosolRhoThermo aerosolPhase const hConst rhoConst specie sensibleInternalEnergy
heAerosolRhoThermo aerosolPhase polynomial hPolynomial icoPolynomial specie sensibleInternalEnergy
heAerosolRhoThermo aerosolPhase sutherland janaf adiabaticPerfectFluid specie sensibleInternalEnergy
heAerosolRhoThermo aerosolPhase sutherland janaf incompressiblePerfectGas specie sensibleInternalEnergy
heAerosolRhoThermo aerosolPhase sutherland janaf perfectFluid specie sensibleInternalEnergy
heAerosolRhoThermo aerosolPhase sutherland janaf perfectGas specie sensibleInternalEnergy
[1]
[1]
[1] From function static typename Table::iterator Foam::basicThermo::lookupThermo(const Foam::dictionary&, Table*, std::initializer_list<const char*>, const Foam::word&) [with Thermo =$
[1] in file /home/thaseem/OpenFOAM/OpenFOAM-v1906/src/thermophysicalModels/basic/lnInclude/basicThermoTemplates.C at line

PS: I don't have this error on my other PC. I tried other rhoAerosolThermoTypes as it suggested but doesn't work. Help needed. Thank you!
cfdGeek likes this.
Piyush25 is offline   Reply With Quote

Old   December 22, 2020, 03:01
Smile Same problem happened
  #18
New Member
 
Victor
Join Date: Dec 2020
Posts: 2
Rep Power: 0
VictorOpen is on a distinguished road
I also met same problem with you.

--> FOAM FATAL ERROR:
Unknown rhoAerosolPhaseThermo type
thermoType
{
type heAerosolRhoThermo;
mixture aerosolPhase;
transport const;
thermo hConst;
energy sensibleInternalEnergy;
equationOfState perfectGas;
specie specie;
}

I'm useing openfoam 1906 version.
Before installing version 1906, I used openfoam 1812. It does not have this problem under openfoam 1812.

I also do not know how to solve it.
Does anybody have some suggestion? Thank you very much.
VictorOpen is offline   Reply With Quote

Old   December 22, 2020, 03:21
Default
  #19
New Member
 
parth
Join Date: Feb 2020
Posts: 23
Rep Power: 6
parthigcar is on a distinguished road
Have you tried to clear the environment? before using other version OpenFOAM environment you should clear the environment by using 'unset' command
parthigcar is offline   Reply With Quote

Old   December 22, 2020, 03:22
Default
  #20
New Member
 
parth
Join Date: Feb 2020
Posts: 23
Rep Power: 6
parthigcar is on a distinguished road
I have used aerosolved with 1812 only.
parthigcar is offline   Reply With Quote

Reply

Tags
aerosolved, compilation error, compile error, openfoam 1712, openfoam 1912

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
Combustion modelling in OpenFOAM - Difficulties AleDR OpenFOAM Running, Solving & CFD 23 January 30, 2021 23:40
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 5, 2016 03:18
[Other] Difficulties trying to install porousMultiphaseFoam on OpenFOAM for Windows 15.06 JKoeleman OpenFOAM Community Contributions 0 September 15, 2015 09:36
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 06:55
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 05:56


All times are GMT -4. The time now is 18:28.