|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Giulia
Join Date: Feb 2022
Posts: 19
Rep Power: 5 ![]() |
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);
}
}
|
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
|
Not sure. Does https://www.openfoam.com/documentati...ces-coded.html help?
|
|
|
|
|
|
|
|
|
#3 | |
|
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 41 ![]() ![]() |
Quote:
Try writing it out. For example, Code:
{
injectionRateSuSp
{
e
{
Su
{
type sine;
...
} Sp
{
type zero;
}
} }
}
|
||
|
|
|
||
|
|
|
#4 |
|
New Member
Giulia
Join Date: Feb 2022
Posts: 19
Rep Power: 5 ![]() |
Yes, it helped indeed. Thank you!
|
|
|
|
|
|
![]() |
| Tags |
| chtmultiregionfoam, fvoption, heat source, sinusoidal, time-dependent |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |