CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Verification & Validation (https://www.cfd-online.com/Forums/openfoam-verification-validation/)
-   -   simpleFoam Validation in Urban Environment using AIJ guidelines (openCAE) (https://www.cfd-online.com/Forums/openfoam-verification-validation/114975-simplefoam-validation-urban-environment-using-aij-guidelines-opencae.html)

imano October 22, 2013 06:43

Hi,

Hmm.. It seems that OF-2.1.0 does not have nutkAtmRoughWallFunction
boundary condition.

So I have changed nut wall function from nutkAtmRoughWallFunction
to nutkWallFunction in branches/2.1/CaseA case.

Please see changeset below and exclude "svn update" in that directory!
http://www.opencae.jp/changeset/128/OpenFOAM-VandV-SIG

Masashi

Quote:

Originally Posted by alvinsim2013 (Post 458193)
Dear Masashi-san,

I have changed to OF2.1 and included the boundaryData's points, k, U and epsilon in the constant folder.
All the log files did not show up any error messages, except 'log' file.

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.1.0-bd7367f93311
Exec : simpleFoam
Date : Oct 22 2013
Time : 12:22:58
Host : "hpclogin2"
PID : 16674
Case : /OpenFOAM-VandV-SIG/AIJ-PWEAB/branches/2.1/CaseA
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
Create mesh for time = 0
Reading field p
Reading field U
Reading/calculating face flux field phi
Selecting incompressible transport model Newtonian
Selecting RAS turbulence model kEpsilon
 
--> FOAM FATAL IO ERROR:
Unknown patchField type nutkAtmRoughWallFunction for patch type wall
Valid patchField types are :
65
(
advective
atmBoundaryLayerInletEpsilon
buoyantPressure
calculated
codedFixedValue
codedMixed
cyclic
cyclicAMI
cyclicSlip
directionMixed
empty
epsilonWallFunction
fan
fanPressure
fixedFluxPressure
fixedGradient
fixedInternalValue
fixedPressureCompressibleDensity
fixedValue
freestream
freestreamPressure
inletOutlet
inletOutletTotalTemperature
kappatJayatillekeWallFunction
kqRWallFunction
mapped
mappedField
mappedFixedInternalValue
mappedFixedPushedInternalValue
mixed
nonuniformTransformCyclic
nutLowReWallFunction
nutTabulatedWallFunction
nutURoughWallFunction
nutUSpaldingWallFunction
nutUWallFunction
nutkRoughWallFunction
nutkWallFunction
omegaWallFunction
oscillatingFixedValue
outletInlet
outletMappedUniformInlet
partialSlip
processor
processorCyclic
rotatingTotalPressure
sliced
slip
symmetryPlane
syringePressure
timeVaryingMappedFixedValue
totalPressure
totalTemperature
turbulentHeatFluxTemperature
turbulentInlet
turbulentIntensityKineticEnergyInlet
turbulentMixingLengthDissipationRateInlet
turbulentMixingLengthFrequencyInlet
uniformDensityHydrostaticPressure
uniformFixedValue
uniformTotalPressure
waveSurfacePressure
waveTransmissive
wedge
zeroGradient
)
 
file: /OpenFOAM-VandV-SIG/AIJ-PWEAB/branches/2.1/CaseA/0/nut::boundaryField::z_ from line 27 to line 30.
From function fvPatchField<Type>::New(const fvPatch&, const DimensionedField<Type, volMesh>&, const dictionary&)
in file /usr/local/OpenFOAM/OpenFOAM-2.1.0/src/finiteVolume/lnInclude/fvPatchFieldNew.C at line 135.
FOAM exiting


Thanks a lot.


alvinsim2013 October 22, 2013 12:19

I have made the changes, but log.Toposet has errors too.While log.sample has FOAM warning, hope this is okay.

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.1.0-bd7367f93311
Exec : topoSet
Date : Oct 23 2013
Time : 00:14:06
Host : "hpclogin2"
PID : 6935
Case : /gpfs/home/tssim1/OpenCAE/AIJ-new2/OpenFOAM-VandV-SIG/AIJ-PWEAB/branches/2.1/CaseA
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
Create polyMesh for time = 0
Reading topoSetDict
 
 
--> FOAM FATAL IO ERROR:
cannot open file
file: /gpfs/home/tssim1/OpenCAE/AIJ-new2/OpenFOAM-VandV-SIG/AIJ-PWEAB/branches/2.1/CaseA/system/topoSetDict at line 0.
From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 87.
FOAM exiting



================================================== =

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.1.0-bd7367f93311
Exec : sample -latestTime
Date : Oct 23 2013
Time : 00:14:16
Host : "hpclogin2"
PID : 7472
Case : /gpfs/home/tssim1/OpenCAE/AIJ-new2/OpenFOAM-VandV-SIG/AIJ-PWEAB/branches/2.1/CaseA
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
Create mesh for time = 200
--> FOAM Warning :
From function sampledSets::combineSampledSets(..)
in file sampledSet/sampledSets/sampledSets.C at line 102
Sample set verx_-075 has zero points.
--> FOAM Warning :
From function sampledSets::combineSampledSets(..)
in file sampledSet/sampledSets/sampledSets.C at line 102
Sample set verx_075 has zero points.
--> FOAM Warning :
From function sampledSets::combineSampledSets(..)
in file sampledSet/sampledSets/sampledSets.C at line 102
Sample set verx_125 has zero points.
--> FOAM Warning :
From function sampledSets::combineSampledSets(..)
in file sampledSet/sampledSets/sampledSets.C at line 102
Sample set verx_200 has zero points.
--> FOAM Warning :
From function sampledSets::combineSampledSets(..)
in file sampledSet/sampledSets/sampledSets.C at line 102
Sample set verx_325 has zero points.
Reading set description:
verx_-075
verx_-050
verx_-025
verx_000
verx_050
verx_075
verx_125
verx_200
verx_325
Time = 200
End

alvinsim2013 October 22, 2013 12:31

There should be a 'topoSetDict' file in the 'system' directory, should it?

Alex Lee October 23, 2013 02:29

AIJ Test Case B
 
Quote:

Originally Posted by wyldckat (Post 456454)
Greetings to all!



Looking back at the original problem:


The problem is that this "link" is actually an artificial link created by the SVN mechanism. It actually means that when checking out the source code through SVN, it would automatically interpret the "Allrun" file as a symbolic link pointing to "../share/Allrun", namely this file: http://www.opencae.jp/svn/OpenFOAM-V...B/share/Allrun

To manually fix this, run from the "CaseB" folder the following block of code on the command line:
Code:

for model in kEpsilon NonlinearKEShih RNGkEpsilon realizableKE
do
    cd $model
    rm Allrun
    ln -s ../share/Allrun Allrun
done

And that's that! It's ready to be used.

Best regards,
Bruno

Dear all,

I could not resolve the problem using the above tips by Bruno.

I did a ./Allrun in the kEpsilon folder and just to check out what is wrong with the script. Here is the error message during the simpleFoam run:

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.1.1-221db2718bbb
Exec : simpleFoam
Date : Oct 23 2013
Time : 14:19:00
Host : "judah-Ubuntu"
PID : 23454
Case : /home/alex/OpenFOAM/CaseB-2.1/kEpsilon
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

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

Create mesh for time = 0



--> FOAM FATAL ERROR:
Cannot find file "points" in directory "polyMesh" in times 0 down to constant

From function Time::findInstance(const fileName&, const word&, const IOobject::readOption, const word&)
in file db/Time/findInstance.C at line 188.

FOAM exiting

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

imano October 23, 2013 03:42

Hi Alvin,

Quote:

Originally Posted by alvinsim2013 (Post 458342)
There should be a 'topoSetDict' file in the 'system' directory, should it?

Right!
I have added topoSetDict in trunk repository but I forgot to add
it in branches repository, sorry. So I just added it now.

http://www.opencae.jp/changeset/129/OpenFOAM-VandV-SIG

Masashi

imano October 23, 2013 04:03

Hi,

Quote:

Originally Posted by Alex Lee (Post 458427)
I could not resolve the problem using the above tips by Bruno.

I did a ./Allrun in the kEpsilon folder and just to check out what is wrong with the script. Here is the error message during the simpleFoam run:

I just removed branches/2.1/Case[B-F] for maintenance.

http://www.opencae.jp/changeset/130/OpenFOAM-VandV-SIG

So please wait for a while until updating these cases for OF version 2.1.x.

BTW as Bruno suggested, symbolic link files in CaseB/[RASModel] directories would not be checked out correctly if you check out on non *nix file system like NTFS or FAT.

So checkout should be done on *nix file system or OS like Linux or Mac OS.

All the Best,
Masashi

alvinsim2013 October 23, 2013 09:10

ありがとう, Masashi san

alvinsim2013 December 2, 2013 01:08

Hi Imano san,

Not sure if there is any update of the cases?

alvinsim2013 December 16, 2013 01:25

updates on cases on maintenance
 
Quote:

Originally Posted by imano (Post 458446)
Hi,



I just removed branches/2.1/Case[B-F] for maintenance.

http://www.opencae.jp/changeset/130/OpenFOAM-VandV-SIG

So please wait for a while until updating these cases for OF version 2.1.x.

BTW as Bruno suggested, symbolic link files in CaseB/[RASModel] directories would not be checked out correctly if you check out on non *nix file system like NTFS or FAT.

So checkout should be done on *nix file system or OS like Linux or Mac OS.

All the Best,
Masashi

Hi Masahi, any updates for any of the case taken down for maintenance soon?

alvinsim2013 January 2, 2014 03:46

comparing timevaryingmappedfixedvalue and setdiscretefield
 
Hi Masashi-san,

1) I would like to ask about your case A on the site
http://www.opencae.jp/wiki/OpenFOAM-VandV-SIG/AIJ-PWEAB

I looked through the '0' folder and it uses 'timevaryingmappedfixedvalue'. I thought you have used setdiscretefield utility since this case A does not use snappyhexmesh. Am I right to say that even for discretesetfield utility, one needs to specify the timevaryingmappedfixedvalue BC in the 0 folder?

2) Since you have done the case A using timevaryingmappedfixedvalue and setdiscretefield, is there any difference in the final results obtained?


Regards
Alvin

Alex Lee July 23, 2014 09:07

AIJ Test Cases OpenFoam Report
 
Dear Imano san,

I am wondering have you ever compiled the AIJ validation results obtained using OpenFoam?

If yes, could i have the privilege to obtain a copy of this report ?

The purpose of this request is to enable me to bring to our building construction authority (BCA) and to convice them that OpenFoam results are as good as Fluent or CFX or Star CCM.

Currently, they are so stiff neck about their decision on not letting people submitting OpenFoam results in building performance analysis submission.

Your help is very much appreciated.

Thank you.

ALEX LEE


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