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

Sinusoidal time-dependent source on fvOption

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

Like Tree1Likes
  • 1 Post By dlahaye

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 23, 2022, 23:18
Default Sinusoidal time-dependent source on fvOption
  #1
New Member
 
Giulia
Join Date: Feb 2022
Posts: 19
Rep Power: 4
letoppina is on a distinguished road
Hello,

I am using openFoam version 6 and chtMultiRegionFoam solver. I am assigning a heat source to my solid region with fvOption file (as the source has to be homogeneously distributed in the region). How can I assign a time-dependent sinusoidal source? I can't find a proper direct solution for this...

Any help is very much appreciated!



I attach below my current code (with fixed source) with fvOption for your reference:

Code:
fixedPower
{
    type            scalarSemiImplicitSource;
    active          yes;
    selectionMode   all;

    volumeMode      absolute;

    power           5;          // Set power (W)

    injectionRateSuSp
    {
        e           ($power 0);
        h           ($power 0);
    }
}
letoppina is offline   Reply With Quote

Old   May 24, 2022, 03:15
Default
  #2
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 736
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
Not sure. Does https://www.openfoam.com/documentati...ces-coded.html help?
letoppina likes this.
dlahaye is offline   Reply With Quote

Old   May 27, 2022, 13:35
Default
  #3
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,695
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by letoppina View Post
Hello,

I am using openFoam version 6 and chtMultiRegionFoam solver. I am assigning a heat source to my solid region with fvOption file (as the source has to be homogeneously distributed in the region). How can I assign a time-dependent sinusoidal source? I can't find a proper direct solution for this...

Any help is very much appreciated!

I attach below my current code (with fixed source) with fvOption for your reference:

Code:
fixedPower
{
    type            scalarSemiImplicitSource;
    active          yes;
    selectionMode   all;

    volumeMode      absolute;

    power           5;          // Set power (W)

    injectionRateSuSp
    {
        e           ($power 0);
        h           ($power 0);
    }
}

Try writing it out. For example,


Code:
{
    injectionRateSuSp
    {
        e
        {
            Su
            {
                type sine;
                ...

            }            Sp
            {
                type zero;
             }
        }    }
}
olesen is offline   Reply With Quote

Old   June 24, 2022, 02:14
Default
  #4
New Member
 
Giulia
Join Date: Feb 2022
Posts: 19
Rep Power: 4
letoppina is on a distinguished road
Yes, it helped indeed. Thank you!
letoppina is offline   Reply With Quote

Reply

Tags
chtmultiregionfoam, fvoption, heat source, sinusoidal, time-dependent

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 ordinary OpenFOAM Installation 19 September 3, 2019 18:13
Star cd es-ice solver error ernarasimman STAR-CD 2 September 12, 2014 00:01
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 01:41
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 02:58
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 18:07


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