CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

fvDOM bugs in 2D? (can only be 2D in X-Y plane)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 21, 2014, 07:17
Default fvDOM bugs in 2D? (can only be 2D in X-Y plane)
  #1
Senior Member
 
Yuehan
Join Date: Nov 2012
Posts: 142
Rep Power: 14
wc34071209 is on a distinguished road
Hello everybody,

These days I just tested the radiation models in OpenFOAM, as enlightend by this post:http://www.cfd-online.com/Forums/ope...n-problem.html

However, I found a few problems. One is that the view factor model seems to show no regards to 'empty' b.c. (I hope I am wrong here, but if I am indeed wrong I hope to corrected by you), which has been put in an independent post.

And regarding fvDOM, it seems you can only put your 2D geometry within X-Y plane. I took a look at the source code fvDOM.C and starting from line 88

Code:
       if (mesh_.nSolutionD() == 2)    //2D (X & Y)
        {
            scalar thetai = piByTwo;
            scalar deltaTheta = pi;
            nRay_ = 4*nPhi_;
            IRay_.setSize(nRay_);
            scalar deltaPhi = pi/(2.0*nPhi_);
            label i = 0;
            for (label m = 1; m <= 4*nPhi_; m++)
            {
                scalar phii = (2.0*m - 1.0)*deltaPhi/2.0;
                IRay_.set
                (
                    i,
                    new radiativeIntensityRay
                    (
                        *this,
                        mesh_,
                        phii,
                        thetai,
                        deltaPhi,
                        deltaTheta,
                        nLambda_,
                        absorptionEmission_,
                        blackBody_,
                        i
                    )
                );
                i++;
            }
So I don't know why OF developers do not consider other 2D situations.
wc34071209 is offline   Reply With Quote

Old   October 23, 2014, 10:36
Default
  #2
Senior Member
 
Join Date: Oct 2013
Posts: 397
Rep Power: 19
chriss85 will become famous soon enough
Probably because of time/resources constraints...feel free to submit a patch!
chriss85 is offline   Reply With Quote

Old   October 23, 2014, 16:24
Default
  #3
Senior Member
 
Yuehan
Join Date: Nov 2012
Posts: 142
Rep Power: 14
wc34071209 is on a distinguished road
How and where to do that?
wc34071209 is offline   Reply With Quote

Old   October 24, 2014, 03:53
Default
  #4
Senior Member
 
Join Date: Oct 2013
Posts: 397
Rep Power: 19
chriss85 will become famous soon enough
Bug tracker is here: http://www.openfoam.org/bugs/

For submitting patches, I think Github is the way to go: https://github.com/OpenFOAM/OpenFOAM-2.3.x
chriss85 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using a Plane id in Fluent UDF cdf_user Fluent UDF and Scheme Programming 13 October 17, 2023 01:06
[Gmsh] Problem with Gmsh nishant_hull OpenFOAM Meshing & Mesh Conversion 23 August 5, 2015 03:09
Plane stress and plane strain cases for stress analysis Sargam05 OpenFOAM 0 May 3, 2013 19:16
Meshing a Mixing Plane using ICEM Will Anderson FLUENT 0 November 6, 2010 18:08
[Gmsh] boundaries with gmshToFoam‏ ouafa OpenFOAM Meshing & Mesh Conversion 7 May 21, 2010 13:43


All times are GMT -4. The time now is 13:21.