CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

Acoustic Solver with openfoam

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

Like Tree20Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   January 7, 2014, 18:59
Default
  #21
New Member
 
Eslam Hashem Mohamed
Join Date: Oct 2013
Location: Cairo,Egypt
Posts: 13
Rep Power: 3
Eslam Hashem is on a distinguished road
Dear Alhasan,

Unfortunately i deals with rotating blades and rotating zone should be considered in my study and i never found any thing a bout ffowcs williams and hawkings formula in openfoam. i don't know what should i do. if i didn't find any thing about fw-h in openfoam my study will stop.

please, can you suggest how i can solve this problem
Eslam Hashem is offline   Reply With Quote

Old   January 7, 2014, 23:50
Default
  #22
Senior Member
 
Alhasan's Avatar
 
Hasan K.J.
Join Date: Dec 2011
Location: Bristol, United Kingdom
Posts: 181
Rep Power: 5
Alhasan is on a distinguished road
Hi Eslam,

Search hard if some one has FW-H model written for openFOAM, its been there out too long both FW-H and OpenFOAM so some one should have written it at some point ?

If it is not necessary you have to use OpenFOAM, FW-H model is available in Fluent !!!

If not comes the complicated part where you have to write you own C++ codes for FW-H

you can start this by understanding the Curle's Equation and see how the model is written in OpenFOAM that is provided above, then you can try to understand FW-H equations and write your own.

- in my point of view writing a FW-H code for openFOAM and validation can be a BEng Dissertation by itself.

Best of Luck
Hasan K.J
Alhasan is offline   Reply With Quote

Old   January 8, 2014, 12:57
Default
  #23
New Member
 
Eslam Hashem Mohamed
Join Date: Oct 2013
Location: Cairo,Egypt
Posts: 13
Rep Power: 3
Eslam Hashem is on a distinguished road
Hi Alhasan,

thank you my friend, i will work hardly to implement this analogy in openfoam. any time if you found any thing about this topic, i will be grateful for informing me.

Best regards,
Eslam H. Mohamed
Eslam Hashem is offline   Reply With Quote

Old   January 9, 2014, 02:32
Default
  #24
Member
 
Ilya
Join Date: Dec 2011
Location: Russia
Posts: 82
Blog Entries: 38
Rep Power: 5
skeptik is on a distinguished road
Quote:
Originally Posted by Eslam Hashem View Post
Hello skeptik,
I want ask for noise utility in openfoam, when i use it , i will need to use any other functionobject such as 'curlefunctionObject' or not. in other words, can noise utility be an alternative approach than acoustic analogy.

i will be grateful if you answer my questions
I have not understood your questions.
__________________
practice makes perfect
skeptik is offline   Reply With Quote

Old   January 9, 2014, 16:59
Default Acoustic analogy in openfoam
  #25
New Member
 
Eslam Hashem Mohamed
Join Date: Oct 2013
Location: Cairo,Egypt
Posts: 13
Rep Power: 3
Eslam Hashem is on a distinguished road
i want to ask for how to implement an acoustic analogy in openfoam. my study focus on noise emitted from wind turbine and as we know, there is no acoustic model in openfoam. any one know how to do this especially using ffowcs williams and hawkings formula.
Eslam Hashem is offline   Reply With Quote

Old   March 14, 2014, 03:59
Default
  #26
New Member
 
sethu
Join Date: Oct 2011
Posts: 5
Rep Power: 5
Sethu is on a distinguished road
Quote:
Originally Posted by skeptik View Post
1. Something is released. You can look for it here

Complex online post-processing:
How to implement simple acoustic analogy in OpenFOAM

(Sergei Strizhak, Matvey Kraposhin)

2. I know nothing about acoustics in Fluent or CFX except that using it you can get also wrong results.
Dear Ilya,

Thanks for sharing the code.

With the help of the notes given I could able to compile only the libraries (dynamically using wmake libso) but when I tried to link the main solver "libAcoustics" I am getting the following error.

In file included from /apps/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.H:232:0,
from Curle/CurleFunctionObject.H:40,
from Curle/CurleFunctionObject.C:26:
/apps/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.C: In member function ‘bool Foam::OutputFilterFunctionObject<OutputFilter>::ti meSet() [with OutputFilter = Foam::Curle]’:
Curle/CurleFunctionObject.C:40:1: instantiated from here
/apps/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.C:219:9: error: ‘class Foam::Curle’ has no member named ‘timeSet’
make: *** [Make/linux64Gcc45DPOpt/CurleFunctionObject.o] Error 1
make: *** Waiting for unfinished jobs....


It would be nice if you could help me out to implement the solver properly..

Regards,

Sethu
Sethu is online now   Reply With Quote

Old   March 17, 2014, 09:11
Default
  #27
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 577
Blog Entries: 5
Rep Power: 13
elvis is on a distinguished road
Hi,
I saw that Professor Jasak made a OF-Summerschool anouncement
Adam Azenic: numerical simulation of the acoustic response in the edge tone simulation. Presenting a full non-linear acoustics solver
https://twitter.com/hrvoje_jasak/sta...93641565782017
elvis is offline   Reply With Quote

Old   March 17, 2014, 09:17
Default
  #28
Member
 
Ilya
Join Date: Dec 2011
Location: Russia
Posts: 82
Blog Entries: 38
Rep Power: 5
skeptik is on a distinguished road
Quote:
Originally Posted by Sethu View Post
Dear Ilya,

Thanks for sharing the code.

With the help of the notes given I could able to compile only the libraries (dynamically using wmake libso) but when I tried to link the main solver "libAcoustics" I am getting the following error.

In file included from /apps/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.H:232:0,
from Curle/CurleFunctionObject.H:40,
from Curle/CurleFunctionObject.C:26:
/apps/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.C: In member function ‘bool Foam::OutputFilterFunctionObject<OutputFilter>::ti meSet() [with OutputFilter = Foam::Curle]’:
Curle/CurleFunctionObject.C:40:1: instantiated from here
/apps/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.C:219:9: error: ‘class Foam::Curle’ has no member named ‘timeSet’
make: *** [Make/linux64Gcc45DPOpt/CurleFunctionObject.o] Error 1
make: *** Waiting for unfinished jobs....


It would be nice if you could help me out to implement the solver properly..

Regards,

Sethu
Did you try OF 2.1?

Although it was mentioned in libAcou documentation that it was developed for OF 2.1 and later, i'd suppose to compile it for OF 2.1
__________________
practice makes perfect
skeptik is offline   Reply With Quote

Old   March 18, 2014, 20:52
Default
  #29
New Member
 
sethu
Join Date: Oct 2011
Posts: 5
Rep Power: 5
Sethu is on a distinguished road
Dear Ilya.,

Yes, it did work well for OF 2.1.0. I could able to compile all the solver codes and libraries in it. I also notice that "OutputFilterFunctionObject.C" file in OF 2.2.2 has got significant changes in it while revision. I dont know how to resolve this issue. But, I will proceed now with OF 2.1.0 to solve the test cases and some of my trail cases.

Thanks for your help. If you have any further updates on this solver, do let us know.

Regards,

Sethu
Sethu is online now   Reply With Quote

Old   August 20, 2014, 10:41
Default why?
  #30
Member
 
Björn Bergqvist
Join Date: Mar 2009
Location: Gothenburg, Västra Götaland, Sweden
Posts: 43
Rep Power: 8
bjornthe is on a distinguished road
did you not add in Curle/Curle.C
"
void Foam::Curle::timeSet()
{
// Do nothing - only valid on execute
}
"

and in Curle/Curle.H
"
//- set time
virtual void timeSet();
"
It compiles on openfoam 2.2.0 then
__________________
________________________________________
Björn Bergqvist,
creator of Discretizer,
a free mesh generator for OpenFOAM
_________http://www.discretizer.org_____________
bjornthe is offline   Reply With Quote

Old   September 16, 2014, 06:58
Default
  #31
New Member
 
DAPHNE
Join Date: Apr 2014
Posts: 6
Rep Power: 3
DAPHNE is on a distinguished road
Quote:
Originally Posted by skeptik View Post
1. Something is released. You can look for it here

Complex online post-processing:
How to implement simple acoustic analogy in OpenFOAM

(Sergei Strizhak, Matvey Kraposhin)

2. I know nothing about acoustics in Fluent or CFX except that using it you can get also wrong results.
Dear Ilya and all,

Thank you so much for sharing the information.
From the presentation material ( OFW-Seoul-Kraposhin-AcousticTrack-5 pdf) given for Curle implementation discussed in slide 9 the expression used for
acoustic pressure is p'= 1/4IIc0_ * x/r^2 *[ (df/dt) + c0 f/r].

But in the Curle .C at line 288
scalar coeff1 = 1. / 4. / Foam::constant::mathematical:: pi / c0_ / c0_ ;

forAll (observers_, iObs)
{
SoundObserver& obs = observers_[iObs];
vector l = obs.position() - c_;
scalar r = mag(l);
scalar oap = l & (dFdT + c0_ * F / r) * coeff1 / r /r;
if (dRef_ > 0.0)
{
oap /= dRef_;
}
obs.apressure(oap);
}

}
}
It is clear that oap is the expression to find the p' value. But in the expression for oap, at the denominator we have c0_^2 , which is computed from the coeff1 expression. Is there any approximation made?Could you please explain is there any approximation like nearfield or farfield behind this approximation?

Thanks in advance.

Last edited by DAPHNE; September 16, 2014 at 06:59. Reason: a small modification
DAPHNE is offline   Reply With Quote

Old   October 2, 2014, 09:33
Default Curle analogy code in OpenFOAM
  #32
New Member
 
Paul
Join Date: Apr 2012
Posts: 17
Rep Power: 5
Delcraft is on a distinguished road
Hello,

Unfortunately, the code shared by skeptic can't be downloaded anymore.

Quote:
Originally Posted by skeptik View Post
1. Something is released. You can look for it here

Complex online post-processing:
How to implement simple acoustic analogy in OpenFOAM

(Sergei Strizhak, Matvey Kraposhin)
Could anyone (including skeptic) share it again? Thanks in advance.

Best Regards,

Delcraft
Delcraft is offline   Reply With Quote

Old   October 4, 2014, 08:43
Default
  #33
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Quick answer:
edit: Links for all of these workshops: http://openfoamwiki.net/index.php/Ha...FOAM-Workshops
skeptik and Alhasan like this.

Last edited by wyldckat; October 4, 2014 at 08:47. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   October 4, 2014, 10:24
Default
  #34
New Member
 
Paul
Join Date: Apr 2012
Posts: 17
Rep Power: 5
Delcraft is on a distinguished road
Thank you! That's exactly what I want.

Delcraft
Delcraft is offline   Reply With Quote

Old   October 29, 2014, 10:17
Default FW-H model in OpenFOAM required.
  #35
Senior Member
 
Alhasan's Avatar
 
Hasan K.J.
Join Date: Dec 2011
Location: Bristol, United Kingdom
Posts: 181
Rep Power: 5
Alhasan is on a distinguished road
Hey @Eslam Hashem
How did your project go, did you implement the FW-H model in OpenFOAM yet or did you find any one else who has implimented any other acoustic anology other than Curles provided by @Ilya in OpenFOAM

Regards,

Hasan K.J
Alhasan is offline   Reply With Quote

Old   April 7, 2015, 08:55
Default Updated Curle library
  #36
Member
 
Ilya
Join Date: Dec 2011
Location: Russia
Posts: 82
Blog Entries: 38
Rep Power: 5
skeptik is on a distinguished road
Hey all.

You can find updated libAcoustics with Curle analogue for OpenFOAM 2.3.0 through following link.

https://unihub.ru/resources/625

Thanks.
wyldckat, taxalian, DAPHNE and 1 others like this.
__________________
practice makes perfect
skeptik is offline   Reply With Quote

Old   April 7, 2015, 08:57
Default
  #37
Senior Member
 
Alhasan's Avatar
 
Hasan K.J.
Join Date: Dec 2011
Location: Bristol, United Kingdom
Posts: 181
Rep Power: 5
Alhasan is on a distinguished road
Thanks a lot for sharing this,

Eagerly waiting for the F-WH for openfoam if any updates please share with us,

Kind Regards,
Hasan K.J
DAPHNE likes this.
__________________
"Real knowledge is to know the extent of one's ignorance." - Confucius
Alhasan is offline   Reply With Quote

Old   May 12, 2015, 01:26
Default how ??
  #38
New Member
 
Ahmad Habib
Join Date: Nov 2014
Location: Aleppo, Syria
Posts: 21
Rep Power: 2
a_habib is on a distinguished road
thanks for the updates but I have a problem
How I can compile it, it seems to be precompiled because ther is (lnInclude) folder and (deb) files.
any one can help me to compile it
thanks in advance
a_habib is offline   Reply With Quote

Old   May 18, 2015, 01:53
Unhappy Help
  #39
New Member
 
Ahmad Habib
Join Date: Nov 2014
Location: Aleppo, Syria
Posts: 21
Rep Power: 2
a_habib is on a distinguished road
Please. any one can help me compiling this library
a_habib is offline   Reply With Quote

Old   May 18, 2015, 14:49
Default
  #40
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Quote:
Originally Posted by a_habib View Post
Please. any one can help me compiling this library
Quick answer:
  1. Make sure you're using OpenFOAM 2.3. For example:
    Code:
    icoFoam -help
    Gives me this at the end:
    Code:
    Using: OpenFOAM-2.3.x (see www.OpenFOAM.org)
    Build: 2.3.x-fdfc12484890
  2. Download the ZIP file from the link in post #36.
  3. Run as normal user the following commands:
    Code:
    mkdir -p $FOAM_RUN
    cd $FOAM_RUN
    cd ..
    unzip ~/Downloads/libAcoustics.zip
    Note: Adjust the path "~/Downloads/libAcoustics.zip" to your needs.
  4. Then run:
    Code:
    cd libAcoustics-2.3
    ./cleanLib.sh
    ./makeLib.sh
  5. If all goes well, the last line shown on screen should be something like this:
    Code:
    '/home/ofuser/OpenFOAM/ofuser-2.3.x/platforms/linux64GccDPOpt/lib/libAcoustics.so' is up to date.
a_habib likes this.
wyldckat is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Working directory via command line Luiz CFX 4 March 6, 2011 21:02
Running Problem using Openfoam solver cfd_staruser OpenFOAM 5 August 14, 2009 02:28
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07
why the solver reject it? Anyone with experience? bearcat CFX 6 April 28, 2008 14:08
OpenFOAM Training and Workshop Zagreb 2628Jan2006 hjasak OpenFOAM 1 February 2, 2006 22:07


All times are GMT -4. The time now is 02:57.