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

Saving boundary conditions to a variable

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 10, 2011, 17:21
Default Saving boundary conditions to a variable
  #1
New Member
 
Join Date: Mar 2011
Posts: 10
Rep Power: 15
MentalVacancy is on a distinguished road
Greeting everyone,

I am trying to use a custom script (within the Java macro function) to export boundary condition values, but I ran into some trouble. I am trying to use the function similar to the following:


SurfaceIntegralReport surfaceIntegralReport_0 = simulation_0.getReportManager().createReport(Surfa ceIntegralReport.class);

PrimitiveFieldFunction primitiveFieldFunction_0 = ((PrimitiveFieldFunction) simulation_0.getFieldFunctionManager().getFunction ("MassFlux"));

surfaceIntegralReport_0.getParts().setObjects(boun dary_0);

tempValue=surfaceIntegralReport_0.getValue();//Mass flow at inlet


Is anyone able to tell me if I am barking up the wrong tree? I need to save mass fluxes and pressures along inlets and outlets for a fluid flow problem.

Thanks in advance
MentalVacancy is offline   Reply With Quote

Old   March 15, 2011, 21:57
Default Bump
  #2
New Member
 
Join Date: Mar 2011
Posts: 10
Rep Power: 15
MentalVacancy is on a distinguished road
Shameless bump. Anyone have any insight into this problem?
MentalVacancy is offline   Reply With Quote

Old   March 22, 2011, 08:46
Default
  #3
Senior Member
 
Join Date: Oct 2009
Location: Germany
Posts: 636
Rep Power: 21
abdul099 is on a distinguished road
I didn't understand what your problem is. Maybe you can describe it a little bit more?

One point I was wondering about is where you try to assing a field function to your surface integral report. How should the software know, which field function value the report should give?
abdul099 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
Impinging Jet Boundary Conditions Anindya Main CFD Forum 25 February 27, 2016 12:58
Putting Boundary Conditions in ANSYS CFX 12.1 palofpinaki CFX 7 January 5, 2015 05:51
Algorithm for coupled pde with all flux boundary conditions benk Main CFD Forum 3 December 28, 2010 05:09
How can I impose variable boundary conditions? behrang2009 FLUENT 2 December 20, 2009 20:26
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 04:05


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