|
[Sponsors] |
Create a linear distribution of temperature in a watertank as initial condition |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 17, 2021, 11:18 |
Create a linear distribution of temperature in a watertank as initial condition
|
#1 |
New Member
Hubert Neubauer
Join Date: Dec 2021
Posts: 1
Rep Power: 0 |
Hey guys,
is it possible to create a linear distribution of temperature in a watertank as initial condition? As I'm using OpenFOAM V8, I cannot use "setExprFields". I already tried to use "setFields" with 18 boxes and created a distribution as you can see in the picture. But can I do it in another (easy) way with a continuous distribution? This would help me a lot to achieve a more realistic model of a stratified water storage! Thanks, Hubert. Last edited by StudentFoamer; December 17, 2021 at 12:53. |
|
December 28, 2021, 10:56 |
|
#2 |
Member
MNM
Join Date: Aug 2017
Posts: 69
Rep Power: 9 |
Hope that u already found the solution to this. If not you can take a look at the following link that discuss about codeStream (A relatively easier way to generate custom initial and boundary conditions for any field variable).
https://wiki.openfoam.com/Programming2 |
|
Tags |
initial condition, setexprfields, setfields, setfieldsdict, temperature |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFoam "Permission denied" and "command not found" problems. | iyidaniel@yahoo.co.uk | OpenFOAM Running, Solving & CFD | 11 | January 2, 2018 07:47 |
Floating point exception error | lpz_michele | OpenFOAM Running, Solving & CFD | 53 | October 19, 2015 03:50 |
simpleFoam error - "Floating point exception" | mbcx4jc2 | OpenFOAM Running, Solving & CFD | 12 | August 4, 2015 03:20 |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 07:20 |
calculation stops after few time steps | sivakumar | OpenFOAM Running, Solving & CFD | 7 | March 17, 2013 07:37 |