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

scalarSemiImplicitSource with time-varying values

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By Yann
  • 1 Post By 37269

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 26, 2021, 08:44
Default scalarSemiImplicitSource with time-varying values
  #1
New Member
 
Join Date: Feb 2016
Posts: 23
Rep Power: 10
37269 is on a distinguished road
Dear all,


I'm trying to inject some tracer material into my simulation using the scalarSemiImplicitSource (in conjunction with a scalarTransport function object).


All examples usually inject a fixed amount x for a fixed time t. I want to specify time-varying injection values now. So I am looking for a way to get my values into the scalarSemiImplicitSource (e.g. one value per second).


Is there such a way? Or do I have to use the codedSource? (if I have to use the codedSource: How would I implement such a table there?)
37269 is offline   Reply With Quote

Old   October 26, 2021, 10:17
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,062
Rep Power: 26
Yann will become famous soon enough
Hi,

You should be able to define a table, the syntax might change depending of the OpenFOAM version you are using.
I hope this helps,
Yann
37269 likes this.
Yann is offline   Reply With Quote

Old   October 26, 2021, 10:32
Default
  #3
New Member
 
Join Date: Feb 2016
Posts: 23
Rep Power: 10
37269 is on a distinguished road
Oh, that was easy. Should have read the header of the source completely! Thanks for pointing out the solution
Yann likes this.
37269 is offline   Reply With Quote

Old   November 9, 2021, 19:35
Default
  #4
New Member
 
christopher
Join Date: Apr 2017
Posts: 4
Rep Power: 8
cana is on a distinguished road
Could you post your solution ? I am having a hard time with a similar problem.
cana 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
courant number increases to rather large values 6863523 OpenFOAM Running, Solving & CFD 22 July 5, 2023 23:48
AMI speed performance danny123 OpenFOAM 21 October 24, 2020 04:13
LES, Courant Number, Crash, Sudden Alhasan OpenFOAM Running, Solving & CFD 5 November 22, 2019 02:05
Inconsistencies in reading .dat file during run time in new injection model Scram_1 OpenFOAM 0 March 23, 2018 22:29
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM Running, Solving & CFD 8 March 28, 2016 11:08


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