CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Source Term

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 2, 2015, 16:31
Default Source Term
  #1
New Member
 
Fabricio
Join Date: Dec 2009
Location: Brazil - São Paulo
Posts: 28
Rep Power: 16
fabriciotb is on a distinguished road
Send a message via MSN to fabriciotb Send a message via Skype™ to fabriciotb
I would like to know how is the more practical way to insert a source term as like in the attached figure. The simulation will be transient.

Thanks
Attached Images
File Type: jpg Differential_equation.jpg (3.7 KB, 34 views)
fabriciotb is offline   Reply With Quote

Old   September 2, 2015, 17:28
Default
  #2
Senior Member
 
Join Date: Jun 2009
Posts: 1,803
Rep Power: 32
Opaque will become famous soon enough
Source term into what equation ?

Separately, may I ask what that expression is trying to model ?
Opaque is offline   Reply With Quote

Old   September 2, 2015, 19:57
Default
  #3
New Member
 
Fabricio
Join Date: Dec 2009
Location: Brazil - São Paulo
Posts: 28
Rep Power: 16
fabriciotb is on a distinguished road
Send a message via MSN to fabriciotb Send a message via Skype™ to fabriciotb
Dear Opaque.

Thanks for your contact.

This is the entropy generation equation, that it has two terms, the temperature and friction terms.

It's a volumetric term and I don't know hos is the better way to implement it.

Thanks.
Attached Images
File Type: jpg Equation.jpg (8.7 KB, 15 views)
fabriciotb is offline   Reply With Quote

Old   September 3, 2015, 09:29
Default
  #4
Senior Member
 
Join Date: Jun 2009
Posts: 1,803
Rep Power: 32
Opaque will become famous soon enough
thank you for the explanation about the source term.. Interesting.

If you need the component of the gradient of a variable in CFX, you can use CEL expressions to access them following the syntax

<Variable Name>.Gradient <Component>

For example, you source term can be written as

Code:
EntropySource = ConductionSource + FrictionSource

ConductionSource = Thermal Conductivity * ( (Temperature.Gradient X)^2 + (Temperature.Gradient Y)^2) / Temperature^2

FrictionSource = Dynamic Viscosity * ( 2 * ( Velocity u.Gradient X ) ^2 + 2 * (Velocity v.Gradient Y) ^2 + ... ) / Temperature
Then, in the subdomain definition select the source for the additional variable you defined, and set

Code:
Source = EntropySource
Source Coefficient  = < A value if needed to help convergence >
Hopefully, the source is well behave and requires no/minimal relaxation.

Good luck..
Opaque is offline   Reply With Quote

Reply


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
Source Term due to evaporation in energy transport equation styleworker OpenFOAM Programming & Development 3 September 7, 2022 03:09
GPU Linear Solvers for OpenFOAM gocarts OpenFOAM Announcements from Other Sources 37 August 17, 2022 14:22
[swak4Foam] Swak4FOAM 0.2.3 / OF2.2.x installation error FerdiFuchs OpenFOAM Community Contributions 27 April 16, 2014 15:14
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 13:59
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 11, 2000 03:43


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