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

Defining Source Term at a Node

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By AlexanderZ

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 21, 2019, 07:09
Default Defining Source Term at a Node
  #1
New Member
 
Ghadeer
Join Date: Feb 2019
Posts: 5
Rep Power: 7
Holagee is on a distinguished road
Greetings all

I want to implement a source term (electric force) to a group of nodes in a region. When I looked at the UDF manual, all the examples are based on applying forces to group of cells. So is it possible to loop over the nodes of a specified region?
Holagee is offline   Reply With Quote

Old   February 25, 2019, 00:35
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
it is possible to loop over nodes
Code:
c_node_loop //nodes in cells
f_node_loop //nodes in face
however, DEFINE_SOURCE macro is executed inside cell loop (no option for nodes there)
So you should think about, how you will apply calculated forces

best regards
Holagee likes this.
AlexanderZ is offline   Reply With Quote

Old   February 25, 2019, 03:16
Default
  #3
New Member
 
Ghadeer
Join Date: Feb 2019
Posts: 5
Rep Power: 7
Holagee is on a distinguished road
Alright. Thanks for your response!
Holagee 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
[swak4Foam] swak4foam for OpenFOAM 4.0 mnikku OpenFOAM Community Contributions 80 May 17, 2022 09:06
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 ordinary OpenFOAM Installation 19 September 3, 2019 19:13
Running UDF with Supercomputer roi247 FLUENT 4 October 15, 2015 14:41
[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 19:04.