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

Decomposing domain

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By clapointe

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 4, 2021, 07:07
Default Decomposing domain
  #1
Member
 
Join Date: Dec 2020
Posts: 38
Rep Power: 5
ulugbey is on a distinguished road
Hi,

I have a divergent duct in Openfoam. I simulate it with 20 processors. I need to increase inlet pressure successively during the simulation. For example after 0,5ms. I will increase the inlet pressure. How should I realise it? Should I go to the 0.005 folder and change the pressure inside this folder and then decompose the domain again. Or should I go to the each processor files and change the pressure inside each processor files? For the second option I think I would not need to decompose the domain again .

Your help will be appreciated!

Thanks
ulugbey is offline   Reply With Quote

Old   September 4, 2021, 12:19
Default
  #2
Senior Member
 
Join Date: Aug 2015
Posts: 494
Rep Power: 14
clapointe is on a distinguished road
There are time-varying boundary conditions that will change it for you, so the manual editing isn't necessary! The first that comes to mind is uniformFixedValue, using a table to specify how you want the value to change with time. So it'd look something like :

Code:
        type            uniformFixedValue;
        uniformValue    table
        (
            (0 100000)
            (0.005 200000) //replace with desired value(s)
        );
        value           $internalField;
Note that I've not tested this, specifically, but I've used the bc like this in the past and the functionality is there (there are likely also many other options -- this is just the first I thought of).

Caelan
saidc. likes this.
__________________
Public git repository : https://github.com/clapointe2011/public
clapointe is offline   Reply With Quote

Old   September 4, 2021, 15:55
Default
  #3
Member
 
Join Date: Dec 2020
Posts: 38
Rep Power: 5
ulugbey is on a distinguished road
Thanks a lot for the reply
I use at the inlet total pressure boundary condition. So I changed the boundary condition at the inlet as follows:
Code:
    inlet
    {
        type           uniformTotalPressure;
        rho             rho;
        psi             none;
        gamma        1.4;
        p0              table 
        (
                        (0       130000)
                        (0.0007  170000)
                        (0.0014  210000)
                        (0.0021  260000)
                        (0.0028  310000)
                        (0.0035  460000)
                        (0.0042  410000)
                        (0.0049  460000)
                        (0.0056  51000)
                        (0.0063  560000)
                        (0.0070  610000)
                        (0.0077  660000)
                        (0.0084  710000)
                        (0.0091  760000)
                        (0.0098  800000)
        );
;
    }
I get the following error :
Quote:
wrong token type - expected Scalar, found on line 1652435 the word 'table'
Do you know how to deal with the table for the total pressure boundary condition?
Thanks in advance!
ulugbey is offline   Reply With Quote

Old   September 4, 2021, 16:05
Default
  #4
Senior Member
 
Join Date: Aug 2015
Posts: 494
Rep Power: 14
clapointe is on a distinguished road
That appears to work for the version of openfoam I referenced (e.g. example case), so I'd guess that it will depend on the version... I found the linked case with a quick search of the available tutorials, so it'd be worth doing the same for the version you're using.

Caelan
__________________
Public git repository : https://github.com/clapointe2011/public
clapointe is offline   Reply With Quote

Old   September 4, 2021, 17:04
Default
  #5
Member
 
Join Date: Dec 2020
Posts: 38
Rep Power: 5
ulugbey is on a distinguished road
Hi,
Thanks. I use Openfoam 2.1.1, which is a very old version. I cant find any information about my question for this version
ulugbey is offline   Reply With Quote

Old   September 5, 2021, 11:58
Default
  #6
Senior Member
 
Join Date: Aug 2015
Posts: 494
Rep Power: 14
clapointe is on a distinguished road
A quick search of 2.1.x shows that (presumably) the same tutorial also uses a table in the bc : tutorial. So at a glance it looks like the same functionality is available -- it just expects a slightly different format.

Caelan
__________________
Public git repository : https://github.com/clapointe2011/public
clapointe 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
Table bounds warnings at: END OF TIME STEP CFXer CFX 4 July 16, 2020 23:44
Can I achieve better convergence? sheaker CFX 12 September 19, 2019 15:36
Turbomachinery Mass imbalance sheaker CFX 12 September 5, 2019 08:09
Closed Domain Buoyancy Flow Problem Madhatter92 CFX 6 June 20, 2016 21:05
Setting rotating frame of referece. RPFigueiredo CFX 3 October 28, 2014 04:59


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