CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

Creating 100 derived parts / Splitting derived parts for mass flux calculation

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Maddin

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 18, 2009, 06:28
Default Creating 100 derived parts / Splitting derived parts for mass flux calculation
  #1
New Member
 
Join Date: Mar 2009
Posts: 20
Rep Power: 17
xamo is on a distinguished road
Hi,

i got some kind of heat exchanger with a lot of tubes (> 100). I want to calculate the mass flux in every tube.

To receive a mass flux I usually make a constrained plane (derived parts / section / constrained plane). Under reports I choose this plane and let CCM calculate the mass flux.

But i do not want to make 100 constrained planes manually. It would be good, if there were something like "split non-continguous" for derived parts, but I cannot find that.

Maybe it is possible to program a makro, but I am not familiar with java.

Any suggestions?

Regards
xamo
xamo is offline   Reply With Quote

Old   September 18, 2009, 10:42
Default
  #2
New Member
 
Join Date: Mar 2009
Posts: 18
Rep Power: 17
highnelly is on a distinguished road
Just a thought, so I might be way of the mark here; but what if you created your geometry with plates at the locations you want to get the mass flow; after you import you can then split by non-contiguous and your plates will be baffles-the default is an internal interface
highnelly is offline   Reply With Quote

Old   September 21, 2009, 11:38
Default
  #3
SKK
Member
 
Join Date: Mar 2009
Posts: 55
Rep Power: 17
SKK is on a distinguished road
Create a constrained plane section for your first tube. While doing so, record the process as a java macro. Modify the java macro to loop for 100 times with an offset of the distance between your tubes, for example,

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/ /loop for 100 times

int istepmax=100;

for (int istep=0;istep<istepmax;istep++) {
-
-
-
//offset each consequitive section by xoff in x direction

xoff=0.0+0.008*istep;

// The following is the co-ordinate of the initial plane section created + offset

(new double[] {0.3+xoff, -0.1, 0.01,
0.301+xoff, -0.1, 0.01,
0.301+xoff, -0.12, -0.01,
0.3+xoff, -0.12, -0.01}), units_0);
-
-
}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Once you have the constrained sections, you can use Reports to get area averaged mass flow rate or whatever that you need and then export the data using Tables from Tools section.

Hope this helps.
SKK is offline   Reply With Quote

Old   September 21, 2009, 12:19
Default
  #4
Senior Member
 
Join Date: Mar 2009
Posts: 260
Rep Power: 18
Maddin is on a distinguished road
Massflow rate on a plane don't works.
You have to make a split to get it.
I often use a field function for this... ($$position[0] < 100) ? 0 : 1 etc.
Maddin is offline   Reply With Quote

Old   September 21, 2009, 13:11
Default
  #5
SKK
Member
 
Join Date: Mar 2009
Posts: 55
Rep Power: 17
SKK is on a distinguished road
OK, I didn't try the exporting report in a table part, but you can get the mas flow for contraint plane sections through report. I have done exactly that for a similar study of a heat excahnger with more than 100 tubes. But may be there are easier way to do that than a macro...
SKK is offline   Reply With Quote

Old   September 21, 2009, 13:19
Default
  #6
New Member
 
Join Date: Mar 2009
Posts: 18
Rep Power: 17
highnelly is on a distinguished road
If he doesn't want to split, I guess a similar macro can be used for a presentation grid, which can be used to get mass flow. I think it was a recent topic in this forum.
highnelly is offline   Reply With Quote

Old   September 21, 2009, 13:29
Default
  #7
Senior Member
 
Join Date: Mar 2009
Posts: 260
Rep Power: 18
Maddin is on a distinguished road
Ok I only tried Section Plane!
munibadshah likes this.
Maddin is offline   Reply With Quote

Old   September 29, 2009, 04:54
Default
  #8
New Member
 
Join Date: Mar 2009
Posts: 20
Rep Power: 17
xamo is on a distinguished road
I have tested the macro, and it worked. (with some small changes). But I hoped there would be an easier way. If you have a tube bundle heat exchanger you have to do another loop also.
In my opinion it would be easy for adapco to add a split option for derived parts, they already have it for boundaries.

@Maddin: Can you explain exactly, what you are doing to calculate the mass flow in a lot of tubes using field functions?

Regards
xamo
xamo is offline   Reply With Quote

Old   September 29, 2009, 06:35
Default
  #9
Senior Member
 
Join Date: Mar 2009
Posts: 260
Rep Power: 18
Maddin is on a distinguished road
I create field function which you the scalar position with an "IF THEN ELSE" law.
But you to look what cell size you have to get a "plane" because some cells aren't the middle. And then I split by function. Other way I don't know.
I do this after the simulation is fine.
Maddin 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
Cht tutorial in 15 braennstroem OpenFOAM Running, Solving & CFD 197 June 10, 2015 04:02
Flux splitting Dr B.M. Smith (Smith) OpenFOAM Running, Solving & CFD 19 January 9, 2013 05:07
formatted point data- icem HSK CFX 12 August 11, 2011 22:25
Warning 097- AB Siemens 6 November 15, 2004 05:41


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