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

With position variable source term discretization

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 11, 2017, 13:05
Talking With position variable source term discretization
  #1
New Member
 
Join Date: Apr 2017
Posts: 2
Rep Power: 0
Amirhossein mokhtari is on a distinguished road
If the heat generation varies linearly with position. How can i discretize that?
Problem is 1D mixed of convection and conduction.
Amirhossein mokhtari is offline   Reply With Quote

Old   January 25, 2018, 08:43
Default
  #2
Senior Member
 
Rami Ben-Zvi
Join Date: Mar 2009
Posts: 155
Rep Power: 17
Rami is on a distinguished road
Quote:
Originally Posted by Amirhossein mokhtari View Post
If the heat generation varies linearly with position. How can i discretize that?
Problem is 1D mixed of convection and conduction.
Hi Amirhossein mokhtari,

It is quite simple with the FEM. See e.g., my paper
R. Ben-Zvi, H. Scher and B. Berkowitz, Two-dimensional finite element method solution of a class of integro-differential equations: Application to non-Fickian transport in disordered media, IJNME, Vol. 112 No. 5, pp. 459-478, 2017, DOI: 10.1002/nme.5524, 2017.
in which you may drop the transient and the memory terms and insert S=Axi + B.

I hope it helps,
Rami
Rami is offline   Reply With Quote

Old   August 9, 2018, 08:57
Default
  #3
New Member
 
Join Date: May 2018
Posts: 19
Rep Power: 8
lejonetfrannorden is on a distinguished road
Hello Amirhossein,

I think you can use a linear equation, e.g. q = Ax + B where A and B are coefficients and x is the distance from your reference point.

One way of discretization that came to my mind first is setting a do or for loop starting at your reference point and then incrementing.
Assign q = B at x=0 assuming 0 is your reference position and B is the heat generation at that point. Then, since you know your final length (xmax) for nmax stepsizes you would have dx = xmax/nmax. Then it is, q = q + A*dx for all the remaining stepsizes.

Regards,
Lejonet
lejonetfrannorden 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
momentum source term zwdi FLUENT 14 June 27, 2017 15:40
[swak4Foam] swak4foam building problem GGerber OpenFOAM Community Contributions 54 April 24, 2015 16:02
Help for the small implementation in turbulence model shipman OpenFOAM Programming & Development 25 March 19, 2014 10:08
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 13:59
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08


All times are GMT -4. The time now is 20:36.