|
[Sponsors] |
July 25, 2019, 07:13 |
Time dependent setFields
|
#1 |
Member
James
Join Date: Jan 2014
Posts: 38
Rep Power: 12 |
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! |
|
July 25, 2019, 09:50 |
|
#2 |
Senior Member
Join Date: Mar 2018
Posts: 115
Rep Power: 8 |
you have to introduce source terms in your computational domain via fvOptions framework.
setFields is a utility to initialize your fields. |
|
July 30, 2019, 13:03 |
|
#3 |
Member
James
Join Date: Jan 2014
Posts: 38
Rep Power: 12 |
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 // } } } } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
bash script for pseudo-parallel usage of reconstructPar | kwardle | OpenFOAM Post-Processing | 42 | May 8, 2024 00:17 |
[solidMechanics] Support thread for "Solid Mechanics Solvers added to OpenFOAM Extend" | bigphil | OpenFOAM CC Toolkits for Fluid-Structure Interaction | 686 | December 22, 2022 10:10 |
AMI speed performance | danny123 | OpenFOAM | 21 | October 24, 2020 05:13 |
Extrusion with OpenFoam problem No. Iterations 0 | Lord Kelvin | OpenFOAM Running, Solving & CFD | 8 | March 28, 2016 12:08 |
plot over time | fferroni | OpenFOAM Post-Processing | 7 | June 8, 2012 08:56 |