|
[Sponsors] |
June 29, 2016, 06:56 |
add an array of new variable to OpenFOAM
|
#1 |
New Member
Hsingtzu Wu
Join Date: Feb 2011
Posts: 24
Rep Power: 15 |
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 |
|
July 8, 2016, 09:28 |
|
#2 |
New Member
Hsingtzu Wu
Join Date: Feb 2011
Posts: 24
Rep Power: 15 |
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()]. |
|
Tags |
openfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Getting Started with OpenFOAM | wyldckat | OpenFOAM | 26 | June 21, 2024 07:54 |
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 |