|
[Sponsors] |
March 21, 2011, 10:45 |
Scalar Field Source Terms
|
#1 |
New Member
Tom
Join Date: Mar 2011
Posts: 11
Rep Power: 15 |
I am trying to add source terms of K and epsilon using the explicitSource class found in /src/finiteVolume/cfdTools/general/fieldSources/basicSource/
I am not having much success, and I do not know if my method is correct? I have modified the simpleFoam solver, using the SimpleWindFoam tutorial as a guide that is included with version 1.7.1. I added the following to the header of simpleFoam.C #include IObasicSourceList.H added the following line at the end of createFileds.H IObasicSourceList explicitSources(mesh) and added mesh tools to the INC and LIBS in make/Options as in simpleWindFoam. I have compiled the solver OK, and tried running the solver. It reads the sourceProperties file but gives an error saying 'Header not OK' when it gets to the fieldData (where the fields and source values are defined. fieldData is defined as: fieldData { k 1.2; epsilon 0.5; } I am not sure why this doesn't work as I have successfully run the simpleWindFoam solver that uses the actuatorDisk source. What have I missed? Is there a better way to add source terms? many thanks Tom |
|
March 23, 2011, 06:25 |
|
#2 |
Member
Jim Knopf
Join Date: Dec 2010
Posts: 60
Rep Power: 16 |
Maybe you can add your source term directly into the k and epsilion or what ever equation using fvm::SuSp() oder just fvm::Su() /fvm:::SP()
it depends. Greetz Jim |
|
Tags |
actuator disk, source terms |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 07:20 |
Source Terms in Star-CCM+ | mk_mat | Siemens | 2 | March 13, 2012 09:14 |
Source terms in local coordinate frames | CF | CFX | 2 | August 29, 2006 03:30 |
Displaying Source terms | Chris | FLUENT | 0 | June 14, 2006 16:20 |
Source Terms | Rajan | CFX | 1 | March 14, 2005 10:26 |