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

adding source terms

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 20, 2016, 04:54
Default adding source terms
  #1
New Member
 
manar
Join Date: Oct 2016
Posts: 17
Rep Power: 10
manar is on a distinguished road
Hello guys ,
This might be basic question , how can I add a vector product source term .eg F X T , to a momentum equation .
I know it should be some thing like :

#include "udf.h"

DEFINE_SOURCE(cell_x_source, cell, thread, dS, eqn)
{
real source;

source = F X T

dS[eqn] = ????;


return source;
}

Both vectors is calculated through another UDS , how can I introduce these vector above and how can I express the mathematical vector product above ?


any suggestion is appreciated
manar is offline   Reply With Quote

Reply

Tags
fluent, udf and programming


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] difficulties installing swak4foam newbie29 OpenFOAM Community Contributions 120 October 21, 2022 05:01
[swak4Foam] groovyBC in openFOAM-2.0 for parabolic velocity bc ofslcm OpenFOAM Community Contributions 25 March 6, 2017 11:03
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 18:18
[swak4Foam] Swak4FOAM 0.2.3 / OF2.2.x installation error FerdiFuchs OpenFOAM Community Contributions 27 April 16, 2014 16:14
[swak4Foam] swak4Foam-groovyBC build problem zxj160 OpenFOAM Community Contributions 18 July 30, 2013 14:14


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