|
[Sponsors] |
May 24, 2022, 00:18 |
Sinusoidal time-dependent source on fvOption
|
#1 |
New Member
Giulia
Join Date: Feb 2022
Posts: 19
Rep Power: 4 |
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); } } |
|
May 24, 2022, 04:15 |
|
#2 |
Senior Member
|
Not sure. Does https://www.openfoam.com/documentati...ces-coded.html help?
|
|
May 27, 2022, 14:35 |
|
#3 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
Try writing it out. For example, Code:
{ injectionRateSuSp { e { Su { type sine; ... } Sp { type zero; } } } } |
||
June 24, 2022, 03:14 |
|
#4 |
New Member
Giulia
Join Date: Feb 2022
Posts: 19
Rep Power: 4 |
Yes, it helped indeed. Thank you!
|
|
Tags |
chtmultiregionfoam, fvoption, heat source, sinusoidal, time-dependent |
|
|
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 19:13 |
Star cd es-ice solver error | ernarasimman | STAR-CD | 2 | September 12, 2014 01:01 |
centOS 5.6 : paraFoam not working | yossi | OpenFOAM Installation | 2 | October 9, 2013 02:41 |
IcoFoam parallel woes | msrinath80 | OpenFOAM Running, Solving & CFD | 9 | July 22, 2007 03:58 |
Could anybody help me see this error and give help | liugx212 | OpenFOAM Running, Solving & CFD | 3 | January 4, 2006 19:07 |