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

Time dependent setFields

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 25, 2019, 06:13
Default Time dependent setFields
  #1
Member
 
James
Join Date: Jan 2014
Posts: 38
Rep Power: 12
Madeinspace is on a distinguished road
Kindly give me an insight on how to set time dependent setFields utility?


Say, I want to keep generating water in the circular computational domain (say every 5 sec) when simulation time is for 60 Sec. (as shown in figure) of dambreak. How do we change the conservation of mass equation when mass is being constantly added?


Thanks!
Attached Images
File Type: jpg dambreakbubble.jpg (116.0 KB, 40 views)
Madeinspace is offline   Reply With Quote

Old   July 25, 2019, 08:50
Default
  #2
Senior Member
 
Join Date: Mar 2018
Posts: 115
Rep Power: 8
anon_q is on a distinguished road
you have to introduce source terms in your computational domain via fvOptions framework.
setFields is a utility to initialize your fields.
anon_q is offline   Reply With Quote

Old   July 30, 2019, 12:03
Default
  #3
Member
 
James
Join Date: Jan 2014
Posts: 38
Rep Power: 12
Madeinspace is on a distinguished road
Thank you for your prompt reply Evren.



Based on twoPhaseEulerFoam/laminar/injection, I modified fvOption file and kept it inside interfoam/damBreakTutorial/constant folder.


Simulation runs fine but I don't see any injection of the mass term (Water) in the specified point. What could I be doing wrong? The fvOptions code is as:


FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object fvOptions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

injector1
{
timeStart 0.1;
duration 0.5;
selectionMode points;
points
(
(0.1 0.35 0.0)
);
}

options
{
massSource1
{
type scalarSemiImplicitSource;

scalarSemiImplicitSourceCoeffs
{
$injector1;

volumeMode absolute;
injectionRateSuSp
{
mixture:rho.water (1 0); // kg/s //

}
}
}
}
Madeinspace 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
bash script for pseudo-parallel usage of reconstructPar kwardle OpenFOAM Post-Processing 41 August 23, 2023 02:48
[solidMechanics] Support thread for "Solid Mechanics Solvers added to OpenFOAM Extend" bigphil OpenFOAM CC Toolkits for Fluid-Structure Interaction 686 December 22, 2022 09:10
AMI speed performance danny123 OpenFOAM 21 October 24, 2020 04:13
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM Running, Solving & CFD 8 March 28, 2016 11:08
plot over time fferroni OpenFOAM Post-Processing 7 June 8, 2012 07:56


All times are GMT -4. The time now is 04:07.