|
[Sponsors] |
September 27, 2010, 12:06 |
Crash using DirectMappedVelocityFluxField
|
#1 |
Senior Member
Francois
Join Date: Jun 2010
Posts: 107
Rep Power: 21 |
Dear developers, debuggers and forum readers,
When using the directMappedVelocityFlux patch to remap the U field, pisoFoam crashes when using the NEARESTFACE option. If interested, I can post the error message associated with the crash, but I've traced the origin back to the following piece of code in directMappedVelocityFluxFixedValueFvPatchField: Code:
00209 newUValues = patch().patchSlice(newUValues); Code:
00176 vectorField newUValues; Reading the similar routine used in directMappedFixedValueFvPatchField.C, I guess the variable in brackets should be allUValues and not newUValues, leading to: Code:
00209 newUValues = patch().patchSlice(allUValues); I was also wondering if a kind soul could also make good use of this discussion and explain to me what the patch().patchSlice() command does? Kind regards, Francois. |
|
September 28, 2010, 10:07 |
|
#2 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
We've finally got a proper bug reporting system :-)
Please report any OpenFOAM bugs on http://www.openfoam.com/bugs. Thanks, Mattijs |
|
October 14, 2010, 03:44 |
|
#3 |
New Member
James Jewkes
Join Date: Oct 2010
Location: Perth, WA
Posts: 13
Rep Power: 16 |
This was still crashing for me;
The updated inlet velocity is written out in the wrong place in "case customDirectMappedPolyPatch::NEARESTFACE" I've attached fixed C source files. |
|
October 14, 2010, 04:24 |
|
#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?
|
|
October 14, 2010, 08:29 |
|
#5 |
Senior Member
Francois
Join Date: Jun 2010
Posts: 107
Rep Power: 21 |
Dear James,
I don't know which version of OpenFOAM you are using, but the issue I had has been resolved in the 1.7.x version. It's just a question of entering "git pull" in the OpenFOAM-1.7.x directory, and recompiling with ./Allwmake. I haven't yet double checked the order of writing in NEARESTFACE, but I saw that you moved the patch().patchSlice() before the mapDistribute::distribute command. I'll come back to you on that one as soon as I find the time to further investigate the problem. Kind regards, Francois. |
|
October 14, 2010, 12:30 |
|
#6 |
New Member
James Jewkes
Join Date: Oct 2010
Location: Perth, WA
Posts: 13
Rep Power: 16 |
Hi Francois,
I was on the most recent pull of the repos, recompiled from scratch. (Check bug #0000056 on the foam bugs list); nearestFace wasn't working for me at all until I moved new*Values to before the mapDistributes, similar to the other cases... James |
|
November 8, 2010, 07:48 |
|
#7 |
Senior Member
Francois
Join Date: Jun 2010
Posts: 107
Rep Power: 21 |
Hi James,
Thank you for your reply! Good to know the problem is fixed, as I was just going to start working with the NEARESTFACE option.. ;-) Regards, Francois. |
|
November 9, 2010, 04:28 |
|
#8 |
Senior Member
Jiang
Join Date: Oct 2009
Location: Japan
Posts: 186
Rep Power: 17 |
Dear Fransje,
It seems that nearestFace still doesn't work for me. mattijs has modified this in 2010.10.15. In my U file, I use like this, inlet { type directMappedVelocityFlux; value uniform(10 0 0); setAverage false; average (10 0 0); phi phi; } Is it right? Thanks. |
|
November 10, 2010, 12:09 |
|
#9 |
Senior Member
Francois
Join Date: Jun 2010
Posts: 107
Rep Power: 21 |
Dear panda,
Yes, this is correct. By the way, if you are using the directMappedVelocityFlux type you don't need the setAverage and the related average switches since they are not used by the directMappedVelocityFluxFvPatchField class. Kind regards, Francois. |
|
November 12, 2010, 07:43 |
|
#10 |
Senior Member
Francois
Join Date: Jun 2010
Posts: 107
Rep Power: 21 |
And nearestFace should now work as well. See the following thread:
http://www.cfd-online.com/Forums/ope...tml#post283044 Kind regards, Francois. |
|
January 13, 2011, 08:34 |
|
#11 | |
Senior Member
Jiang
Join Date: Oct 2009
Location: Japan
Posts: 186
Rep Power: 17 |
Quote:
Are you working now for "nearestFace" ? I think mattijs have fixed the bug for nearestPatchFace, and it is working now. But I think he didn't repair nearestFace. How about your case ? Thanks. |
||
January 13, 2011, 09:16 |
|
#12 |
New Member
James Jewkes
Join Date: Oct 2010
Location: Perth, WA
Posts: 13
Rep Power: 16 |
Hi,
It has been a while since I looked at this, however I'm think that that the fix Mattijs implemented, worked for me? James |
|
Tags |
directmapped, nearestface, remapping |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Graphic/plotted monitors causing Fluent 12.0 to crash | Autumn | FLUENT | 6 | May 25, 2010 02:19 |
Flow Simulation Crash with Trajectories | D.Castle | FloEFD, FloWorks & FloTHERM | 2 | August 5, 2009 15:50 |
Error%7eerror triggers crash after handling exceptions thrown by errorexit twice | 7islands | OpenFOAM Bugs | 2 | September 4, 2007 06:24 |
Design Modeler crash | LR | CFX | 3 | May 13, 2005 20:52 |
track cause of crash | Matt | Phoenics | 2 | October 5, 2001 10:16 |