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

develop a solver

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 22, 2013, 05:29
Default develop a solver
  #1
Member
 
Arjang Behnoud
Join Date: Oct 2012
Posts: 55
Rep Power: 3
AmirBaqa1987 is on a distinguished road
Hi Dear all

I want to develop a solver by adding new equations to simplefoam solver, the new equations contain the following term:




K,D and C are constant.

I don't know how should I write this term (Inner product of two gradients) at newSimpleFoam.C .

any help is appreciated.

Thanks in advanced.
Arjang
AmirBaqa1987 is offline   Reply With Quote

Old   August 22, 2013, 05:43
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 787
Rep Power: 12
Bernhard is on a distinguished road
Do you want to solve for F or for T?

If you want to solve for T, is there any physics behind this equation? Did you think about the algorithm you want to use: e.g. which terms to treat implicitly and which terms to use explicitly? It looks a bit odd to me though.
Bernhard is offline   Reply With Quote

Old   August 22, 2013, 15:56
Default
  #3
Senior Member
 
chegdan's Avatar
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 505
Rep Power: 17
chegdan will become famous soon enough
  • What is T and What is F?
  • Are they scalars, vectors, tensors, etc?
  • How have you tried to write the equation already?
  • Did what you have already written compile or not?
__________________
Dan

Find me on twitter @dancombest
chegdan is offline   Reply With Quote

Old   August 24, 2013, 01:56
Default develop a solver
  #4
Member
 
Arjang Behnoud
Join Date: Oct 2012
Posts: 55
Rep Power: 3
AmirBaqa1987 is on a distinguished road
[QUOTE=Bernhard;447392]Do you want to solve for F or for T?

I want to add two Eqs. to simpleFoam solver.
one of them is energy Eq. and contains that so-called term and other one is particle continuity Eq.

with these two Eqs. I want to solve for both T and F.
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
Strange residuals of the Density Based Solver Pat84 FLUENT 0 October 22, 2012 15:59
Creating New Solver: For particle-laden compressible jets sankarv OpenFOAM 0 April 4, 2010 18:06
Problem with implicit unsteady solver CCMuser STAR-CCM+ 2 March 3, 2010 11:20
why the solver reject it? Anyone with experience? bearcat CFX 6 April 28, 2008 14:08
Did someone develop a CIP solver tachioka OpenFOAM Running, Solving & CFD 0 October 10, 2007 10:17


All times are GMT -4. The time now is 01:37.