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

Time dependent gradient boundary condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 26, 2020, 09:52
Default Time dependent gradient boundary condition
  #1
New Member
 
Join Date: Sep 2018
Posts: 25
Rep Power: 8
jeroendemto is on a distinguished road
Hello everyone!

As the title states I'm trying to imply a time dependant gradient as a boundary condition. You can find the formula I'm trying to implement on the boundary as attachment. The method I tried is using uniformFixedGradient and use an uniform value which is a polynomial. This looks as follows:

Code:
    inlet
    {
        type        uniformFixedGradient;
        uniformValue polynomial ( (-2.82*T[0] 0.5));
    }
I know the meshid of the cell I want to imply the boundary condition is the first cell, hence the T[0].
However I get the following error code

Code:
keyword uniformGradient is undefined in dictionary "/0/T.boundaryField.inlet"

file: /0/T.boundaryField.inlet from line 25 to line 26.

    From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const
    in file db/dictionary/dictionary.C at line 570.

FOAM exiting
It seems like I'm using the wrong type, but I don't know which other type I have to use.

Kind regards,
Jeroen
Attached Images
File Type: png boundaryCondition.PNG (4.8 KB, 6 views)
jeroendemto is offline   Reply With Quote

Old   November 27, 2020, 09:36
Default
  #2
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 646
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi Jeroen,

Personally I have not used this boundary condition, but the error message that you get is quite clear:

Code:
keyword uniformGradient is undefined in dictionary "/0/T.boundaryField.inlet"
Which is correct as you have specified:

Code:
uniformValue polynomial ( (-2.82*T[0] 0.5));
So if you change the uniformValue to a uniformGradient at least this error should go away.

Best Regards,
Tom
tomf is offline   Reply With Quote

Old   November 30, 2020, 01:37
Default
  #3
Senior Member
 
Mohammad Shakil Ahmmed
Join Date: Oct 2012
Location: AUS
Posts: 137
Rep Power: 15
ahmmedshakil is on a distinguished road
Quote:
Originally Posted by jeroendemto View Post
Hello everyone!

As the title states I'm trying to imply a time dependant gradient as a boundary condition. You can find the formula I'm trying to implement on the boundary as attachment. The method I tried is using uniformFixedGradient and use an uniform value which is a polynomial. This looks as follows:

Code:
    inlet
    {
        type        uniformFixedGradient;
        uniformValue polynomial ( (-2.82*T[0] 0.5));
    }
I know the meshid of the cell I want to imply the boundary condition is the first cell, hence the T[0].
However I get the following error code

Code:
keyword uniformGradient is undefined in dictionary "/0/T.boundaryField.inlet"

file: /0/T.boundaryField.inlet from line 25 to line 26.

    From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const
    in file db/dictionary/dictionary.C at line 570.

FOAM exiting
It seems like I'm using the wrong type, but I don't know which other type I have to use.

Kind regards,
Jeroen
Hi Jeroen,
You can use groovyBC boundary conditions, which comes with swak4Foam, for your case.

Shakil
ahmmedshakil 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
[swak4Foam] Time and Location Dependent Boundary Condition uyelken OpenFOAM Community Contributions 0 January 2, 2020 09:22
pimpleDyMFoam computation randomly stops babapeti OpenFOAM Running, Solving & CFD 5 January 24, 2018 06:28
Low Mixing time Problem Mavier CFX 5 April 29, 2013 01:00
plot over time fferroni OpenFOAM Post-Processing 7 June 8, 2012 08:56
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 05:03


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