View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001703 | OpenFOAM | Bug | public | 2015-05-21 17:00 | 2015-05-22 22:40 |
Reporter | Assigned To | henry | |||
Priority | low | Severity | trivial | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | GNU/Linux | OS | Ubuntu | OS Version | 14.04 |
Summary | 0001703: streamFunction does not work for a case in the XZ plane | ||||
Description | There are two lines in streamFunction.C: edgeHat.replace(vector::Z, 0); edgeHat /= mag(edgeHat); These both occur twice. If your case is in the XZ plane then the edgeHat.replace(vector::Z, 0); line will make the edgeHat vector zero on some boundaries, making the line edgeHat /= mag(edgeHat); divide by zero. The code seems to work if I remove both of the edgeHat.replace(vector::Z, 0); lines | ||||
Tags | No tags attached. | ||||