CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   New densitybased solver AeroFoam (https://www.cfd-online.com/Forums/openfoam-solving/57832-new-densitybased-solver-aerofoam.html)

Rachit June 21, 2011 06:17

Stuck!!
 
Hi everyone!:)

I am a new of OpenFOAM and hence AeroFoam as well. In order to get familiar with it, I went to the following website and downloaded the Oblique Shock Test problem:

http://www.aero.polimi.it/freecase/?...:Oblique_shock

After uncompressing the folder, I tried to run it, but the following came on the terminal:

This is a start/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 1.6-53b7f692aa41
Exec : AeroFoam
Date : Jun 21 2011
Time : 16:02:27
Host : rachit-desktop
PID : 5378
Case : /home/rachit/OpenFOAM/OpenFOAM-1.6/foam_run/compressible/ObliqueShock_B/ObliqueShock_B
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

// using new solver syntax:
cellDisplacement
{
solver PCG;
preconditioner DIC;
tolerance 1e-08;
relTol 0;
}

========================================
Reading Thermodynamic Properties...
========================================
gamma [-] = 1.4
Pr [-] = 0.72
R [J/KgK] = 287.05
Cp [J/KgK] = 717.625
Cv [J/KgK] = 1004.67
----------------------------------------

========================================
Reading Initial Conditions...
========================================
Reading field p
Reading field T
Reading field U
----------------------------------------
Creating conservative variables at t^(k)
Creating conservative variables at t^(k-1)
Creating conservative variables at t^(k-2)
Creating conservative variables fluxes at t^(k)
Creating primitive variables gradient fields (optional)
----------------------------------------

========================================
Creating Mesh Connectivity...
========================================
Using adaptive algorithm...
id_LL_i6500SIZE3100Loop on Internal Faces...


Nothing happens beyond this, as in the process is still continuing but no progress is being made.:confused:

Could anyone please tell me what mistake I am making?

Thanks in advance!

Rachit

Vorobus July 19, 2011 10:20

AeroFoam problems
 
Hi,
I've tried to use AeroFoam 1.7.1 solver for the OpenFoam 1.7.1 tutorial case ObliqueShock, and I 've done all the correctoins which are given in the AEROFOAM QUICK START paper www.aero.polimi.it/freecase/?download=AeroFoam_QuickStart.pdf
but after entering AeroFoam I see the following message:
vadim.vorobyov@oslo:~/OF171/compressible/aeroFoam/forwardStep$ AeroFoam
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.7.x |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 1.7.x-3776603e4c6c
Exec : AeroFoam
Date : Jul 19 2011
Time : 18:00:56
Host : oslo
PID : 15382
Case : /home/vadim.vorobyov/OF171/compressible/aeroFoam/forwardStep
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

========================================
Reading Thermodynamic Properties...
========================================


--> FOAM FATAL IO ERROR:
keyword R is undefined in dictionary "/home/vadim.vorobyov/OF171/compressible/aeroFoam/forwardStep/constant/thermodynamicProperties"

file: /home/vadim.vorobyov/OF171/compressible/aeroFoam/forwardStep/constant/thermodynamicProperties from line 18 to line 43.

From function dictionary::lookupEntry(const word&, bool, bool) const
in file db/dictionary/dictionary.C at line 395.

FOAM exiting
------------------------------------

I've tried to put R universal gas constant into the corresponding file/ here is how my
"thermodynamicProperties" looks like

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.7.1 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object thermophysicalProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

thermoType ePsiThermo<pureMixture<constTransport<specieThermo <hConstThermo<perfectGas>>>>>;

// Note: these are the properties for a "normalised" inviscid gas
// for which the speed of sound is 1 m/s at a temperature of 1K
// and gamma = 7/5
mixture
{
specie
{
gamma 1.4;
R 287;
nMoles 1;
molWeight 11640.3;
}
thermodynamics
{
R 287;
Cp 2.5;
Hf 0;

}
transport
{
mu 0;
Pr 1;
R 287;
}
}
////////////////
Does anyone has an idea why I have this error ?:confused:

Please, Help!
Thank you very much in advance! :)

trantoan2008 September 27, 2011 04:15

Hi All,

I had the same problem like you when I tried to use AeroFoam solver to test that case. Is there anybody treat this problem?

aerothermal December 5, 2011 11:20

sourceForge AoeroFoam for OF1.7
 
See that someone developed a 1.7.1 version.:)
I have not tested yet.

https://sourceforge.net/projects/aerofoam/

aerothermal December 5, 2011 14:43

I had same problem here when running the Onera M6 wing test case downloaded from AeroFoam site and using AeroFoam for OF1.7.1.

Quote:

Originally Posted by Emilie (Post 302432)
Hello everybody,

I'm trying to use the solver AeroFoam with the 1.7.1 version of OF; it's part of an important project for my study. I downloaded the Aerofoam files at :
https://sourceforge.net/projects/aerofoam/files/Source/
And now I want to test this solver with a tutorial case : the oblique shock.
However, (after 'BlockMesh'), when I launch AeroFoam, I have :


-------------------------------------------------------------

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

========================================
Reading Thermodynamic Properties...
========================================
gamma [-] = 1.4
Pr [-] = 0.72
R [J/KgK] = 287.05
Cp [J/KgK] = 717.625
Cv [J/KgK] = 1004.67
----------------------------------------

========================================
Reading Initial Conditions...
========================================
Reading field p
Reading field T
Reading field U
----------------------------------------
Creating conservative variables at t^(k)
Creating conservative variables at t^(k-1)
Creating conservative variables at t^(k-2)
Creating conservative variables fluxes at t^(k)
Creating primitive variables gradient fields (optional)
----------------------------------------

========================================
Creating Mesh Connectivity...
========================================
Using adaptive algorithm...
id_LL_i7290SIZE3510Loop on Internal Faces...
i=0i=1i=2i=3i=4i=5i=6i=7i=8i=9i=10i=11i=1

until i=3509
Loop on Boundary Faces...
----------------------------------------

========================================
Mesh
========================================
# of Faces = 3510
# of Cells = 1800
# of BndPatch = 5
0) inlet @ top
1) supersonicInlet @ inlet
2) extrapolatedOutlet @ outlet
3) symmetryPlane @ bottom
4) empty @ frontAndBack
----------------------------------------

========================================
Numerical Scheme
========================================
flowType = Euler
timeScheme = RK2
CourantMax = 0.1
CourantSteps = 25
MonotoneFlux = Roe
HighResFlux = LW
fluxLimiter = VL
entropyFix = HH2
extrapolateBC = 1
residualNorm = L1
minResidual = -1
----------------------------------------
Does everything look fine? [y] to continue [n] otherwise

-------------------------------------------------------------
I type yes and get :

-------------------------------------------------------------
blf fx i=1
...
blf fx i=3509
#0 Foam::error::printStack(Foam::Ostream&) in "/opt/openfoam171/lib/linux64GccDPOpt/libOpenFOAM.so"
#1 Foam::sigSegv::sigSegvHandler(int) in "/opt/openfoam171/lib/linux64GccDPOpt/libOpenFOAM.so"
#2 in "/lib/libc.so.6"
#3
at Foam::GeometricField<Foam::Vector<double>, Foam::fvsPatchField, Foam::surfaceMesh>*, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh>*, Foam::word, Foam::word, Foam::word, Foam::word, double)
#4
in "/home/emilie/OpenFOAM/bruno-1.7.1/applications/bin/linux64GccDPOpt/AeroFoam"
#5 __libc_start_main in "/lib/libc.so.6"
#6
in "/home/emilie/OpenFOAM/bruno-1.7.1/applications/bin/linux64GccDPOpt/AeroFoam"
Segmentation fault

-------------------------------------------------------------

Does anyone has an idea why I have this error ?:confused:

Thank you very much for your help ! :)

Emilie


arashfluid October 8, 2013 02:37

Hi
Does anyone have a benchmark for AeroFoam Solver in OpenFOAM-1.7.x or 1.6-ext or newer versions?

avani October 30, 2015 13:34

AeroFoam Solver in OpenFoam
 
Hello all,

I am a student and I am pretty new to CFD and specially, OpenFoam. I am trying to install the AeroFoam solver in an OpenFoam 2.3.0 version. Does anyone know if this will work since the page I got the AeroFoam file from only lists 1.4.1 as the version to be used.

Also, if it works, how should I go about installing this feature?

Thank you for all your help!

wyldckat October 31, 2015 06:35

Greetings Avani and welcome to the forum!

The source code made available here has two versions:
  • AeroFoam-v1.tar.gz, which is made to work with OpenFOAM 1.4.1
  • AeroFoam-v2.tar.gz, which is made to work with... OK, in the file "myOpenFOAM.H" says this:
    Quote:

    Code:

    Cross-compatibility for OpenFOAM 1.5-dev, 1.6-ext, 1.7.1 and 2.0.0

With any luck, this works with OpenFOAM 2.3 and 2.4... But I would strongly suggest you first try using OpenFOAM 2.0.0 for testing if you can get any results with this in the first place.

As for installing it... see the description given inside the file "Make/files".

Best regards,
Bruno

PS: I've moved your post to the original thread dedicated to AeroFoam, for keeping everything on the same topic in the same thread.

tuananhtran56 January 15, 2016 08:20

Hi Giulio.
I have learnt about FSI using open-source software. I 'm very interested in your thesis. But my OpenFoam software 's version isn't 1.4.
Can you give me ubuntu deb pack openfoam 1.4 or AeroFoam for newest version of OpenFoam 3.0.1 to my email (tuananhtran.kthk56@gmail.com).
Thank you so much.


All times are GMT -4. The time now is 19:27.