|
[Sponsors] |
March 10, 2011, 18:21 |
Saving boundary conditions to a variable
|
#1 |
New Member
Join Date: Mar 2011
Posts: 10
Rep Power: 15 |
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 |
|
March 15, 2011, 22:57 |
Bump
|
#2 |
New Member
Join Date: Mar 2011
Posts: 10
Rep Power: 15 |
Shameless bump. Anyone have any insight into this problem?
|
|
March 22, 2011, 09:46 |
|
#3 |
Senior Member
Join Date: Oct 2009
Location: Germany
Posts: 636
Rep Power: 22 |
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? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Impinging Jet Boundary Conditions | Anindya | Main CFD Forum | 25 | February 27, 2016 13:58 |
Putting Boundary Conditions in ANSYS CFX 12.1 | palofpinaki | CFX | 7 | January 5, 2015 06:51 |
Algorithm for coupled pde with all flux boundary conditions | benk | Main CFD Forum | 3 | December 28, 2010 06:09 |
How can I impose variable boundary conditions? | behrang2009 | FLUENT | 2 | December 20, 2009 21:26 |
RPM in Wind Turbine | Pankaj | CFX | 9 | November 23, 2009 05:05 |