attachDetachFvMesh ignores uniformValue of attached patch (OpenFoam 1.5-dev)
I submitted the following report to http://www.openfoam.com/mantisbt as suggested at the top of this forum. It was deleted without giving a reason. Are bugs related to the development version not accepted? Then the sticky post "Reporting OpenFOAM bugs" should say so.
Still, could somebody please have a look at this issue:
The following issue has been DELETED.
Reported By: schmittp54
Issue ID: 68
Date Submitted: 2010-10-26 16:39 BST
Last Modified: 2010-10-26 16:39 BST
Summary: attachDetachFvMesh ignores uniformValue of attached
patch (OpenFoam 1.5-dev)
The attached case for OpenFoam 1.5-dev is a modified driven cavity. It
attaches/detaches a barrier in the middle of the cavity with velocity U=(-1,0,0)
at the barrier opposite to the moving wall.
The simulation result (attached image)
shows that instead of the given boundaryFields in 0/U:
value uniform (-1 0 0);
value uniform (-1 0 0);
the actual velocity on these patches is zero, when the barrier is attached.
(We have confirmed this by printing the U.boundaryField() on the attached patch
in a modified icoDyMFoam solver, which shows "value uniform(0,0,0);" instead of
the expected "value uniform(-1,0,0);")
Steps to Reproduce:
Download and extract the attached newAttachDetach.tar.gz.
rm -rf 0.* 1* 2* 3* 4* 5* 6* 7* 8* 9*
Observe the velocity field U in paraFoam.
Date Modified Username Field Change
2010-10-26 16:39 schmittp54 New Issue
2010-10-26 16:39 schmittp54 File Added: newAttachDetach.tar.gz
2010-10-26 16:49 henry Issue Deleted: 0000068
I'd appreciate some feedback, whether I am using attachDetachFvMesh in a wrong way, whether somebody did reproduce the problem and whether this is considered a bug by OpenFoam users who are more experienced than I am.
If this is confirmed as a bug I'll debug to the root of the problem and hopefully submit a patch.
I already wrote a rude answer about OpenCFD deleting bug reports etc, but let's not bother with that: it is clear that the open forum bug tracker is needed. Please carry on reporting your bugs here for the moment; a further announcement will follow.
Now, to attach/detach: when the geometry is connected, the patches will disappear into nothing, and when disconnected they will jump to existence from zero size. Therefore, there is nothing for me to map from.
The correct boundary condition for your case is uniformFixedValue, which will work correctly.
Thanks a lot, Hrv.
Using uniformFixedValue instead of fixedValue solved the problem.
|All times are GMT -4. The time now is 07:37.|