CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > 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 Search this Thread Display Modes
Old   June 29, 2016, 06:56
Default add an array of new variable to OpenFOAM
  #1
New Member
 
Hsingtzu Wu
Join Date: Feb 2011
Posts: 24
Rep Power: 15
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, 09:28
Default
  #2
New Member
 
Hsingtzu Wu
Join Date: Feb 2011
Posts: 24
Rep Power: 15
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 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
Getting Started with OpenFOAM wyldckat OpenFOAM 25 August 14, 2022 14:55
OpenFOAM 4.0 Released CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 2 October 6, 2017 06:40
Add new substance to OpenFoam manajafi OpenFOAM Pre-Processing 0 June 20, 2015 05: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 21:08


All times are GMT -4. The time now is 06:32.