CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Create a linear distribution of temperature in a watertank as initial condition

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 17, 2021, 11:18
Smile 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
StudentFoamer is on a distinguished road
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.
Attached Images
File Type: jpg TemperatureDistributionWatertank.JPG (25.3 KB, 15 views)

Last edited by StudentFoamer; December 17, 2021 at 12:53.
StudentFoamer is offline   Reply With Quote

Old   December 28, 2021, 10:56
Default
  #2
Member
 
MNM
Join Date: Aug 2017
Posts: 69
Rep Power: 9
SHUBHAM9595 is on a distinguished road
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
SHUBHAM9595 is offline   Reply With Quote

Reply

Tags
initial condition, setexprfields, setfields, setfieldsdict, temperature

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
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


All times are GMT -4. The time now is 10:13.