CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

add an array of new variable to OpenFOAM

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 29, 2016, 05:56
Default add an array of new variable to OpenFOAM
  #1
New Member
 
Hsingtzu Wu
Join Date: Feb 2011
Posts: 23
Rep Power: 8
hsingtzu is on a distinguished road
Hello

I would like to add heat sources to a model. The values of the heat sources are different in different cells. I would like to find a way that the solver looks for an array in a certain file for the heat sources in the internal field, and the heat sources in all boundaries are set to be zero.

Does anyone know how to make it, or has anyone done similar work?

Thanks
hsingtzu is offline   Reply With Quote

Old   July 8, 2016, 08:28
Default
  #2
New Member
 
Hsingtzu Wu
Join Date: Feb 2011
Posts: 23
Rep Power: 8
hsingtzu is on a distinguished road
I propose a way that probably works.
Define a new variable "Q" for heat source, and then change the values in the internal field from Q[0] to Q[Q.size()].
hsingtzu is offline   Reply With Quote

Reply

Tags
openfoam

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Started with OpenFOAM wyldckat OpenFOAM 16 October 3, 2016 10:44
OpenFOAM 4.0 Released CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 0 June 28, 2016 05:06
Add new substance to OpenFoam manajafi OpenFOAM Pre-Processing 0 June 20, 2015 04:28
new variable output as a file in openfoam for Ensight plot conceptone OpenFOAM Post-Processing 1 February 18, 2014 15:54
Install Openfoam in Suse 100 setup environment h34gk1 OpenFOAM Installation 1 September 26, 2006 20:08


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