CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User 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 Search this Thread Display Modes
Old   August 19, 2013, 09:36
Default how to write some terms in ***.C file
  #1
Member
 
Arjang Behnoud
Join Date: Oct 2012
Posts: 61
Rep Power: 13
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, 12:34
Default
  #2
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 19
Artur will become famous soon enough
I recommend having a look at the following:

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

http://www.cfd-online.com/Forums/ope...equations.html

http://www.cfd-online.com/Forums/ope...tml#post411753

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, 17:29
Default
  #3
Member
 
Arjang Behnoud
Join Date: Oct 2012
Posts: 61
Rep Power: 13
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 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
[swak4Foam] groovyBC in openFOAM-2.0 for parabolic velocity bc ofslcm OpenFOAM Community Contributions 25 March 6, 2017 11:03
[Helyx OS] Helyx-OS (GUI for SnappyHexMesh elvis OpenFOAM Community Contributions 210 January 30, 2017 19:57
2.0.x on Mac OSX niklas OpenFOAM Installation 74 March 28, 2012 17: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 04:08.