CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Cdrag multiple tracking (https://www.cfd-online.com/Forums/openfoam/80916-cdrag-multiple-tracking.html)

vkrastev October 11, 2010 08:26

Cdrag multiple tracking
 
Hi all,
I'm performing some aerodynamic calculations and it will be very useful to me to understand if by using the forceCoeffs function there is the possibility to track the drag coefficients of more than one patch at the same time (I mean during the same run). To be as much clear as I can, what I want to do is not to evaluate the Cdrag of an object composed by different patches, but namely the drag contribution of every single patch.

Thank you in advance

V.

vkrastev October 12, 2010 04:40

Any replies?

wei_wu October 12, 2010 23:30

I'd like to know the answers also.

paka October 13, 2010 15:46

Yes, it is mentioned in different posts. Search through the forum, I'm not sure I didn't use it for different patches, but I believe you just repeat the whole section where you call for force output, but you define multiple sections with different directory names. Something like:

name1
{
...
}

name2
{
...
}

I'm not sure, search, read, verify ;)

Aloha,
K

vkrastev October 15, 2010 08:41

Quote:

Originally Posted by paka (Post 279052)
Yes, it is mentioned in different posts. Search through the forum, I'm not sure I didn't use it for different patches, but I believe you just repeat the whole section where you call for force output, but you define multiple sections with different directory names. Something like:

name1
{
...
}

name2
{
...
}

I'm not sure, search, read, verify ;)

Aloha,
K

Yes, it's like Paka said. I've verified it on my own and it works: you just have to declare some different forceCoeffs-type functions into the controlDict (the name is not important, what is important is do declare them properly), each one referred to the patch of interest. By doing so, during the run time the code will store the force coefficients in different folders, named as the different functions are.

Regards

V.


All times are GMT -4. The time now is 03:22.