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

how to write some terms in ***.C file

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 19, 2013, 08:36
Default how to write some terms in ***.C file
  #1
Member
 
Arjang Behnoud
Join Date: Oct 2012
Posts: 55
Rep Power: 4
AmirBaqa1987 is on a distinguished road
Hi Dear all
I try to develop simpleFoam solver by adding new equations to it, new equations have the following terms :


1. nabla . [D nabla F + (C/ T) nabla T]
2. K [ D nabla F . nabla T + (D/T) nabla T . nabla T ]

D,C and K are constant.

I don't know how should I write these terms in newSimpleFoam.c and also for each term fvm is better or fvc.

(a correct mathematic presentation of above terms is attached)

your help is appreciated.
Thanks.

Arjang
Attached Files
File Type: pdf attachment.pdf (14.8 KB, 9 views)
AmirBaqa1987 is offline   Reply With Quote

Old   August 19, 2013, 11:34
Default
  #2
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 226
Rep Power: 6
Artur is on a distinguished road
I recommend having a look at the following:

https://dl.dropboxusercontent.com/u/...20tutorial.pdf

Extra terms in turbulence model transport equations

Implementing an Equation

There is a lot more information in this forum about modifying the default solvers, simpleFoam in particular.
Artur is offline   Reply With Quote

Old   August 19, 2013, 16:29
Default
  #3
Member
 
Arjang Behnoud
Join Date: Oct 2012
Posts: 55
Rep Power: 4
AmirBaqa1987 is on a distinguished road
thanks for your answer Dear Artur. but I want to know how should I write these terms to achieve
better convergence.

I think firstly I should make a linearization of terms nablaT.nablaT and nablaF.nablaF , if that's true which CFD books can help me?

Does any body have any tip for me?
AmirBaqa1987 is offline   Reply With Quote

Reply

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
Helyx-OS (GUI for SnappyHexMesh elvis OpenFOAM Native Meshers: snappyHexMesh and Others 176 July 10, 2015 16:50
groovyBC in openFOAM-2.0 for parabolic velocity bc ofslcm OpenFOAM 23 July 10, 2015 09:44
2.0.x on Mac OSX niklas OpenFOAM Installation on Windows, Mac and other Unsupported Platforms 74 March 28, 2012 16:46
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 12:46


All times are GMT -4. The time now is 08:30.