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

How to create a dummy node (IB, IC) based on (I)th node

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 12, 2022, 08:07
Question How to create a dummy node (IB, IC) based on (I)th node
  #1
Senior Member
 
Kumaresh
Join Date: Oct 2016
Posts: 349
Rep Power: 11
Kummi is on a distinguished road
Send a message via Yahoo to Kummi
Hello Foamers,
Consider the region of interest to be divided into N elements (I= 1 to N). In my work, I need to duplicate the node as (IB, IC) for a purpose.
Let's say,
Quote:
for(I = 1 to N)
{
if (T[I] == 100)
IB = I;
}
for(I=IB+1 to N)
{
if (T[I] < 100)
IC = I;
}
Here are my queries,
(1) How to declare the for loop specifically (marked in red) in OpenFOAM?
(2) How to address IB (in blue color) ? Like if its scalar variable we can declare "scalar IB" but that's not gonna work here.
Kindly someone share the ideas.
Thank you
Kummi 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
node based gradient lalupp Main CFD Forum 3 April 25, 2012 10:51
Diff b/w node based & cell based methd Murthy FLUENT 0 April 2, 2008 13:18
is there any method give node based velocity BC? daniel FLUENT 2 July 18, 2006 21:21
node based or cell centered Ts values acboge FLUENT 0 February 6, 2004 06:41
About node based calculation Lohen FLUENT 2 January 28, 2004 10:50


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