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

fvOptions acousticDampingSource

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 23, 2021, 16:29
Default fvOptions acousticDampingSource
  #1
New Member
 
simona
Join Date: Apr 2021
Posts: 21
Rep Power: 5
carolee is on a distinguished road
Hi,
I want to add acousticDampingSource using fvOptions but I don't find this source, I try to make it, I copied the .H and .C files from the internet but when I compile I get this message

make: *** No rule to make target 'Make/linux64GccDPInt32Opt/sources/derived/acousticDampingSource/acousticDampingSource.C.dep', needed by 'Make/linux64GccDPInt32Opt/sources/derived/acousticDampingSource/acousticDampingSource.o'. Stop
carolee is offline   Reply With Quote

Old   April 26, 2021, 09:00
Default
  #2
Senior Member
 
Join Date: Dec 2019
Location: Cologne, Germany
Posts: 355
Rep Power: 8
geth03 is on a distinguished road
the .C and .H - files are already compiled, you do not need to compile them again.
what you need is a fvOptions-file in the constant directory.

the minimal example from https://www.openfoam.com/documentati...ingSource.html
looks like this:

Code:
acousticDampingSource1
{
    // Mandatory entries (unmodifiable)
    type                 acousticDampingSource;

    // Mandatory entries (runtime modifiable)
    frequency        3000;
    URef             UMean;
    origin           (-1.25 0 0);
    radius1          1.2;
    radius2          1.65;

    // Optional entries (runtime modifiable)
    w                20;

    // Conditional optional entries (runtime modifiable)
    // Either of the below

        // Option-1
        UNames           (<UName1> <UName2> ... <UNameN>);

        // Option-2
        U                U;

    // Mandatory/Optional (inherited) entries
    ...
}
make sure, that you use the keywords defined for your OF version.
geth03 is offline   Reply With Quote

Old   October 7, 2023, 11:30
Default
  #3
New Member
 
Join Date: Sep 2023
Posts: 5
Rep Power: 2
Xuxu is on a distinguished road
Quote:
Originally Posted by geth03 View Post
the .C and .H - files are already compiled, you do not need to compile them again.
what you need is a fvOptions-file in the constant directory.

the minimal example from https://www.openfoam.com/documentati...ingSource.html
looks like this:

Code:
acousticDampingSource1
{
    // Mandatory entries (unmodifiable)
    type                 acousticDampingSource;

    // Mandatory entries (runtime modifiable)
    frequency        3000;
    URef             UMean;
    origin           (-1.25 0 0);
    radius1          1.2;
    radius2          1.65;

    // Optional entries (runtime modifiable)
    w                20;

    // Conditional optional entries (runtime modifiable)
    // Either of the below

        // Option-1
        UNames           (<UName1> <UName2> ... <UNameN>);

        // Option-2
        U                U;

    // Mandatory/Optional (inherited) entries
    ...
}
make sure, that you use the keywords defined for your OF version.
Hello,
I have a doubt that it can be implemented into my equation if I have a acoustic equation. And I want to know how difficult it is to copy a fvOptions for my equation.
Xuxu is offline   Reply With Quote

Reply


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
fvOptions limitTemperature crashing in compressibleInterFoam JM27 OpenFOAM Running, Solving & CFD 38 November 29, 2023 03:55
Can I use fvOptions to couple a solid region and a fluid region? titanchao OpenFOAM Running, Solving & CFD 4 January 14, 2022 07:55
What are the units used in the thermophysicalProperties and fvOptions dictionaries? ophr OpenFOAM Pre-Processing 2 June 16, 2019 01:29
Configuration of boundary conditions and fvOptions file Raza Javed OpenFOAM Running, Solving & CFD 16 May 3, 2019 16:35
Power and Enthalpy in fvOptions file Raza Javed OpenFOAM Running, Solving & CFD 1 April 26, 2019 10:03


All times are GMT -4. The time now is 21:08.