|
[Sponsors] |
October 13, 2010, 06:45 |
directMappedVelocityFlux boundary condition
|
#1 |
New Member
James Jewkes
Join Date: Oct 2010
Location: Perth, WA
Posts: 13
Rep Power: 16 |
Hi,
I'm trying to implement a variant of the Lund Wu and Squires inflow condition in OpenFOAM. After having had a bit of a play, is seems that directMappedVelocityFlux is a nice candidate for the starting point. (I'm aware that there have been bug reports with this boundary condition that have recently been fixed, and I have pulled the latest OpenFOAM-1.7.x image from the git repos accordingly.) Has anyone managed to get a case working with this boundary condition? cheers, James |
|
October 14, 2010, 00:56 |
|
#2 |
New Member
James Jewkes
Join Date: Oct 2010
Location: Perth, WA
Posts: 13
Rep Power: 16 |
OK - as I understand it, for the directMapped boundary condition, there are 3 options in system/changeDictionaryDict for choosing how the recycle plane is sampled;
'nearestCell' - values taken from the closest cell centre? 'nearestFace' - values taken from the middle of the nearest face? 'nearestPatchFace' - values taken from the nearest patch? however, for directMappedVelocityFlux, there appears to be only 2 functioning options, 'nearestFace' and 'nearestPatchFace'. I've got a simple 2D channel flow test-case which works fine with directMapped-nearestCell, but crashes for both directMapped-nearestFace and directMappedFixedVelocity-nearestFace. I've outputted the newUValues variable to screen (from 'case customDirectMappedPolyPatch::NEARESTFACE' in directMappedVelocityFluxFixedValueFvPatchField.C), it doesn't seem to be sampling the velocity field properly? |
|
October 14, 2010, 03:38 |
|
#3 |
New Member
James Jewkes
Join Date: Oct 2010
Location: Perth, WA
Posts: 13
Rep Power: 16 |
It's a bug. The velocity field is written out in the wrong place. I've attached fixed C source files, and will add a bug report.
|
|
October 14, 2010, 04:12 |
|
#4 |
New Member
James Jewkes
Join Date: Oct 2010
Location: Perth, WA
Posts: 13
Rep Power: 16 |
The mapDistributes may also need to be corrected?
|
|
November 5, 2010, 10:47 |
|
#5 |
Senior Member
Jiang
Join Date: Oct 2009
Location: Japan
Posts: 186
Rep Power: 17 |
Dear JamesJCFD,
I also want to do the same work ,and I have struggle it for more than half year. Indeed eugene said that modifying " directMappedVelocityFlux" is the best method. But I have tried this , nearestFace doesn't work at all, so I gave up in that time. But last month some bugs seems to be fixed by mattijs ,so I will try this again. Maybe we can talk here. http://www.cfd-online.com/Forums/ope...ng-method.html |
|
November 5, 2010, 10:55 |
|
#6 |
Senior Member
Jiang
Join Date: Oct 2009
Location: Japan
Posts: 186
Rep Power: 17 |
Maybe you can try the latest version, because mattijs has modified this part in October 15, 2010 .
Could you go to this thread, maybe eugene will pay attation to this. http://www.cfd-online.com/Forums/ope...ng-method.html Best regards, |
|
January 14, 2011, 10:03 |
|
#7 |
Senior Member
Francois
Join Date: Jun 2010
Posts: 107
Rep Power: 21 |
Hello James,
I was wondering if you managed to get your implementation of Lund and Squires to work properly with a modified version of directMappedVelocityFlux? Kind regards, Francois. |
|
January 17, 2011, 07:15 |
|
#8 |
New Member
James Jewkes
Join Date: Oct 2010
Location: Perth, WA
Posts: 13
Rep Power: 16 |
Hi Franjse,
We used directMappedFixedValueFVPatchField.C as the starting point for the implementation of our variant of the LWS method. (Jewkes J. W., Chung, Y. M., Carpenter P. W. (2011) Modifications to a Turbulent Inflow Generation Method for Boundary-Layer Flows AIAA Journal, 49 (1), 247 - 250 (0001-1452)). James |
|
January 17, 2011, 07:17 |
|
#9 |
New Member
James Jewkes
Join Date: Oct 2010
Location: Perth, WA
Posts: 13
Rep Power: 16 |
Just to clarify, the paper mentioned above was produced using our own finite-volume code, however we've recently re-written the code for OpenFOAM.
|
|
January 17, 2011, 09:06 |
|
#10 |
Senior Member
Jiang
Join Date: Oct 2009
Location: Japan
Posts: 186
Rep Power: 17 |
Dear James,
as Eugene has said, "DirectMappedVelocityFluxField " can be the best candidate to achieve this goal. Because you can compile this boundary condition file to your solver together. Whereas "directMappedFixedValueFVPatchField.C" has a lot of file and is to complex to achieve this goal. |
|
January 18, 2011, 08:48 |
|
#11 |
Senior Member
Mohammad
Join Date: Feb 2010
Location: Shiraz, Iran
Posts: 108
Rep Power: 16 |
hi all,
sorry but i'm new to linux and openfoam. I replaced the changed sourcecode in src folder. now i dont know how to recompile it and set openfoam to use the new BC. please help... thank you in advance |
|
January 18, 2011, 09:25 |
|
#12 |
New Member
James Jewkes
Join Date: Oct 2010
Location: Perth, WA
Posts: 13
Rep Power: 16 |
Hi m2montazari,
If you're new to linux and scientific computing http://software-carpentry.org/ introduces many useful tools and methods. If you want to learn about OpenFOAM development, and have some funding, the official OpenCFD training courses are excellent. http://www.openfoam.com/training/ Otherwise, the chalmers website also provides a great introduction; http://www.tfd.chalmers.se/~hani/kurser/OS_CFD/ For new boundary conditions, The OpenFOAMwiki website provides a good general guide; http://openfoamwiki.net/index.php/Ho...dary_condition hope that helps, James |
|
January 18, 2011, 09:56 |
|
#13 |
New Member
James Jewkes
Join Date: Oct 2010
Location: Perth, WA
Posts: 13
Rep Power: 16 |
Dear Jiang,
WeuseddirectMappedFixedValueFVPatchField.C in the end, although it has been a while since I looked at it. It was a bit fiddlier to modify than directMappedVelocityFluxField, granted. This boundary condition is very sensitive to initial conditions, so you will also need to create a utility to initialise your flow field correctly. We're most of the way towards an OpenFOAM implementation of our AIAA paper (a Lund Wu and Squires (LWS) variant), and are working through the validation process. Once our current research is finished, we're planning to make the code available to the wider OpenFOAM community. James |
|
May 7, 2011, 20:02 |
|
#14 | |
New Member
Perry L. Johnson
Join Date: Feb 2011
Location: Orlando, FL, USA
Posts: 17
Rep Power: 15 |
Quote:
I have recently become interested in using the LWS method in OpenFOAM and this thread caught my eye. Are you still planning on making your code available? If so, any idea when this could happen? Regards, Perry |
||
February 12, 2021, 08:37 |
|
#15 |
New Member
Carlton Flores
Join Date: Feb 2021
Posts: 1
Rep Power: 0 |
Recycling techniques can be susceptive to nonphysical interaction between the downstream recycle plane and the inlet plane.
shareit get-vidmateapk.com Last edited by vicyclesix; February 14, 2021 at 09:13. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Boundary Conditions | Thomas P. Abraham | Main CFD Forum | 20 | July 7, 2013 06:05 |
How exactly the "pressure outlet" bdry condition compute properties on the boundary? | yating9901 | FLUENT | 3 | June 28, 2010 13:26 |
Transient outlet boundary condition problem | jwillie2000 | CFX | 1 | December 7, 2009 18:07 |
How to set boundary condition in Fluent for the fo | Peiyong | FLUENT | 1 | November 10, 2006 12:44 |
How to resolve boundary condition problem? | sam | FLUENT | 2 | July 20, 2003 03:19 |