abiyfantaye / dfsr Goto Github PK
View Code? Open in Web Editor NEWDFSR is a synthetic inflow turbulence generation method tailored to computational wind engineering applications.
License: Other
DFSR is a synthetic inflow turbulence generation method tailored to computational wind engineering applications.
License: Other
Hi,
Thanks so much for your remarkable works in ABL modelling. It helps me a lot! But there are some questions in the code that I'm not very understand. Could you help me to answer them?
The first one is: In Line 17 of correctDivergence.H, why you add the average velocity to Ut? It seems like the average velocity has already been added in Line 109 of generateInflow.H
The second one is: Why you use the method of potentialFoam to solve the Possion's equation. Why not solve the equation directly using the method in pEqn.H of pisoFoam? Are there any differences?
Thanks again for your help! Look forward to your reply!
I was trying to compile this package for the ESI version, but I got all sort of error. I was able to debug some, but still got issue with some error.
Do you plan to make a version for this distribution?
Thank you very much for replying!
Regards,
Hey when I following your instruction, everything is fine until the last step calling Allwmake. It says immintrin.h couldnt be found. Wondering if thats the cause.
wmakeLnInclude: linking include files to ./lnInclude
wmakeLnInclude: linking include files to ./lnInclude
could not open file immintrin.h for source file DFSRTurb.C due to No such file or directory
In file included from /shared/home/Apps/OpenFOAM-ORG/OpenFOAM-8/src/OpenFOAM/lnInclude/Tensor.H:240,
from /shared/home/Apps/OpenFOAM-ORG/OpenFOAM-8/src/OpenFOAM/lnInclude/SymmTensorI.H:27,
from /shared/home/Apps/OpenFOAM-ORG/OpenFOAM-8/src/OpenFOAM/lnInclude/SymmTensor.H:155,
from /shared/home/Apps/OpenFOAM-ORG/OpenFOAM-8/src/OpenFOAM/lnInclude/symmTensor.H:38,
from /shared/home/Apps/OpenFOAM-ORG/OpenFOAM-8/src/OpenFOAM/lnInclude/fieldTypes.H:37,
from /shared/home/Apps/OpenFOAM-ORG/OpenFOAM-8/src/OpenFOAM/lnInclude/flipOp.H:40,
from /shared/home/Apps/OpenFOAM-ORG/OpenFOAM-8/src/OpenFOAM/lnInclude/mapDistributeBaseTemplates.C:29,
from /shared/home/Apps/OpenFOAM-ORG/OpenFOAM-8/src/OpenFOAM/lnInclude/mapDistributeBase.H:488,
from /shared/home/Apps/OpenFOAM-ORG/OpenFOAM-8/src/OpenFOAM/lnInclude/Field.C:30,
from /shared/home/Apps/OpenFOAM-ORG/OpenFOAM-8/src/OpenFOAM/lnInclude/Field.H:339,
from /shared/home/Apps/OpenFOAM-ORG/OpenFOAM-8/src/OpenFOAM/lnInclude/scalarField.H:38,
from /shared/home/Apps/OpenFOAM-ORG/OpenFOAM-8/src/OpenFOAM/lnInclude/dimensionSet.H:46,
from /shared/home/Apps/OpenFOAM-ORG/OpenFOAM-8/src/OpenFOAM/lnInclude/dimensionedType.H:40,
from /shared/home/Apps/OpenFOAM-ORG/OpenFOAM-8/src/OpenFOAM/lnInclude/dimensionedScalar.H:38,
from /shared/home/Apps/OpenFOAM-ORG/OpenFOAM-8/src/OpenFOAM/lnInclude/TimeState.H:38,
from /shared/home/Apps/OpenFOAM-ORG/OpenFOAM-8/src/OpenFOAM/lnInclude/Time.H:47,
from /shared/home/Apps/OpenFOAM-ORG/OpenFOAM-8/src/finiteVolume/lnInclude/fvCFD.H:6,
from DFSRTurb.C:47:
/shared/home/Apps/OpenFOAM-ORG/OpenFOAM-8/src/OpenFOAM/lnInclude/TensorI.H: In member function \u2018Foam::Vector<Cmpt> Foam::Tensor<Cmpt>::vectorComponent(Foam::direction) const [with Cmpt = double]\u2019:
/shared/home/Apps/OpenFOAM-ORG/OpenFOAM-8/src/OpenFOAM/lnInclude/TensorI.H:327:1: warning: control reaches end of non-void function [-Wreturn-type]
327 | }
| ^
/usr/bin/ld.bfd: cannot find -lwindProfile
/usr/bin/ld.bfd: cannot find -lextrudedPatch
collect2: error: ld returned 1 exit status
make: *** [/shared/home/Apps/OpenFOAM-ORG/OpenFOAM-8/wmake/makefiles/general:142: /shared/home/JRCC/OpenFOAM/JRCC-8/platforms/linux64GccDPInt32Opt/bin/DFSRTurb] Error 1
`โฏ sh ./Allwmake
Allwmake /Users/seanwang/OpenFOAM/seanwang-8/applications/utilities/preProcessing/DFSRTurb
wmake windProfile
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file windProfile.C
xcrun c++ -arch x86_64 -std=c++14 -Ddarwin64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wno-overloaded-virtual -Wno-unused-variable -Wno-unused-local-typedef -Wno-invalid-offsetof -Wno-deprecated-register -Wno-undefined-var-template -O3 -DNoRepository -ftemplate-depth-100 -I/Volumes/OpenFOAM/OpenFOAM-8/src/finiteVolume/lnInclude -I/Volumes/OpenFOAM/OpenFOAM-8/src/meshTools/lnInclude -I/Volumes/OpenFOAM/OpenFOAM-8/src/sampling/lnInclude -I/Volumes/OpenFOAM/OpenFOAM-8/src/surfMesh/lnInclude -I/include -IlnInclude -I. -I/Volumes/OpenFOAM/OpenFOAM-8/src/OpenFOAM/lnInclude -I/Volumes/OpenFOAM/OpenFOAM-8/src/OSspecific/POSIX/lnInclude -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -c windProfile.C -o Make/darwin64ClangDPInt32Opt/windProfile.o
windProfile.C:108:17: error: conversion from 'tmp<Field<typename innerProduct<Vector, Vector>::type>>' (aka 'tmp<Field>') to 'Foam::scalarField' (aka 'Field') is ambiguous
scalarField z = p & vector(0.0, 0.0, 1.0);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~
/Volumes/OpenFOAM/OpenFOAM-8/src/OpenFOAM/lnInclude/tmp.H:153:16: note: candidate function
inline operator const T&() const;
^
/Volumes/OpenFOAM/OpenFOAM-8/src/OpenFOAM/lnInclude/Field.H:153:9: note: candidate constructor
Field(const tmp<Field>&);
^
windProfile.C:119:17: error: conversion from 'tmp<Field<typename innerProduct<Vector, Vector>::type>>' (aka 'tmp<Field>') to 'Foam::scalarField' (aka 'Field') is ambiguous
scalarField z = p & vector(0.0, 0.0, 1.0);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~
/Volumes/OpenFOAM/OpenFOAM-8/src/OpenFOAM/lnInclude/tmp.H:153:16: note: candidate function
inline operator const T&() const;
^
/Volumes/OpenFOAM/OpenFOAM-8/src/OpenFOAM/lnInclude/Field.H:153:9: note: candidate constructor
Field(const tmp<Field>&);
^
windProfile.C:129:17: error: conversion from 'tmp<Field<typename innerProduct<Vector, Vector>::type>>' (aka 'tmp<Field>') to 'Foam::scalarField' (aka 'Field') is ambiguous
scalarField z = p & vector(0.0, 0.0, 1.0);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~
/Volumes/OpenFOAM/OpenFOAM-8/src/OpenFOAM/lnInclude/tmp.H:153:16: note: candidate function
inline operator const T&() const;
^
/Volumes/OpenFOAM/OpenFOAM-8/src/OpenFOAM/lnInclude/Field.H:153:9: note: candidate constructor
Field(const tmp<Field>&);
^
3 errors generated.
make: *** [Make/darwin64ClangDPInt32Opt/windProfile.o] Error 1`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.