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

How can I create a field function that contains an integral ?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 23, 2015, 07:20
Default How can I create a field function that contains an integral ?
  #1
New Member
 
Quentin L
Join Date: Jul 2015
Posts: 2
Rep Power: 0
quent9 is on a distinguished road
Hello guys,

I'm working on my master's thesis, it's about a vertical axis wind turbine and I would like to create a field function like :

int(p - p atm)dS to calculate the drag

I don't find in the user guide how we could write a field function with a integral operator.

Could someone help me please ?

Thanks.
quent9 is offline   Reply With Quote

Old   July 24, 2015, 05:58
Default
  #2
DCK
New Member
 
Join Date: Jun 2015
Location: Germany
Posts: 4
Rep Power: 11
DCK is on a distinguished road
Hi,

I am not sure what you mean with p atm. Assuming it is the reference pressure (Continua -> Physics -> Reference Values -> Reference Presure) the following should work:

1. Create a Surface Integral Report. Field Function: Pressure. Parts: your area "S". It's default Name will be "Surface Integral 1"

2. Create a Field Function. Definition: ${SurfaceIntegral1Report}

That's it.

Last edited by DCK; July 24, 2015 at 05:59. Reason: typo
DCK is offline   Reply With Quote

Old   July 27, 2015, 11:07
Default
  #3
New Member
 
Quentin L
Join Date: Jul 2015
Posts: 2
Rep Power: 0
quent9 is on a distinguished road
Thanks DCK for your interesting reply.

In fact, I think this is the good way but one thing disturb me in your arguments :

I have to choose the part for the integral and I can't choose the frontal area of my VAWT. I just can choose the part that compose the regions...

Do you have any solution ?

Thank you again !
quent9 is offline   Reply With Quote

Old   July 28, 2015, 12:15
Default
  #4
Senior Member
 
Matt
Join Date: Aug 2014
Posts: 947
Rep Power: 18
fluid23 is on a distinguished road
Why are you creating a report that already exists? Force reports can be customized to report only pressure forces and by selecting the proper axis definition you can get pressure drag back out. You are making this way more difficult than it needs to be.

Also, you should never select a part for a report. Always choose a region, ...so you are on the right track there already.

Create a force report:
-right click Reports and select New Report > Force

-choose your units

-define your direction. (for VAWT drag you will want to use your freestream velocity vector)

-change force option to pressure and set reference pressure to 0 atm. (this is a gauge pressure, not absolute so 0 will reference whatever you have input into continua > physics > reference values > reference pressure.)

-assign your blade regions (and any other surface regions that contribute to the drag value you want)

Easy as 3.141592653589793238462643383279502884197169399375 1058209, right?
fluid23 is offline   Reply With Quote

Old   July 28, 2015, 12:17
Default
  #5
Senior Member
 
Matt
Join Date: Aug 2014
Posts: 947
Rep Power: 18
fluid23 is on a distinguished road
Field functions should only be used to to calculate variables that are distributed in space. Not the integration, summation or derivation of variables that are distributed in space that result in a uniform scalar value.
fluid23 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
[Other] dynamicTopoFVMesh and pointDisplacement RandomUser OpenFOAM Meshing & Mesh Conversion 6 April 26, 2018 08:30
[snappyHexMesh] How to define to right point for locationInMesh Mirage12 OpenFOAM Meshing & Mesh Conversion 7 March 13, 2016 15:07
[blockMesh] non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Meshing & Mesh Conversion 7 April 17, 2013 06:42
dimension in field function arun7328 STAR-CCM+ 6 March 17, 2013 14:06
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 13:21


All times are GMT -4. The time now is 12:31.