CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[swak4Foam] funkydoCalc issue with snGrad

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 15, 2016, 11:06
Default funkydoCalc issue with snGrad
  #1
Senior Member
 
Manu Chakkingal
Join Date: Feb 2016
Location: Delft, Netherlands
Posts: 129
Rep Power: 10
manuc is on a distinguished road
Hello

I have n issue with snGrad usage with funkydocalc.

With swak4foam

I gave :

Code:
functions(
 
   NusseltNumber_hot 
   { 
    type          patchExpression; 
     outputControl  timeStep; 
     outputInterval 1; 
        patches ( 
                w_l 
               ); 
    verbose true; 
        variables ( 
                "Tsat=300.1;" 
                "ln2D=3.065;"      //length(.08)/k(.0261)  
               ); 
    expression "ln2D*snGrad(T)/(T-Tsat)"; 
        accumulations ( 
                    average 
            );  
   }
);
------------------------------------------------------

This gave me a Nusselt No. of 56.02 (neglect scaling)
.

With all data in disk I tried to obtian the same using funkyDoCalc as:

Code:
    NusseltNumber_hot 
   { 
    valueType                        patch; 
        patchName                        w_l; 
        variables (  
                        "Tsat=300.1;" 
                        "ln2D=3.065;"      //length(.08)/k(.0261)  
         ); 
    expression                      "ln2D*snGrad(T)/(T-Tsat)"; 
        accumulations ( 
                    max 
                  );  
   }
-----------------------------------------------------------
Which is giving me 0 as output for max/min/average

I read in:
https://sourceforge.net/p/openfoam-e...2.1_v2.x/tree/

that the snGrad doesnt work when data is in disc and needs to be temporarily loaded. Could anyone explain on what to be done
__________________
Regards
Manu

Last edited by wyldckat; January 1, 2018 at 19:47. Reason: Added [CODE][/CODE] markers
manuc is offline   Reply With Quote

Old   January 1, 2018, 19:49
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by manuc View Post
that the snGrad doesnt work when data is in disc and needs to be temporarily loaded. Could anyone explain on what to be done
Quick answer, although really late by now: according to the information you've found, you must use this while the solver is running and cannot use it with funkyDoCalc.
__________________
wyldckat is offline   Reply With Quote

Old   January 2, 2018, 11:00
Default
  #3
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by wyldckat View Post
Quick answer, although really late by now: according to the information you've found, you must use this while the solver is running and cannot use it with funkyDoCalc.
Yep. Reason is that for such calculations to work correctly funkyDoCalc would have to call correctBoundaryConditions() on loaded fields. And that has the strong potential to crash if a boundary condition needs another field in memory and doesn't find it.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Prism Layer - Core Mesh Boundary Issue InfernoxCJC STAR-CCM+ 7 November 21, 2017 15:46
Convergence issue in natural convection problem chrisf90 FLUENT 5 March 5, 2016 08:30
Strange issue while launching ANSYS workbench in CentOS 6.4 Philip_C ANSYS 11 August 29, 2013 06:44
CyclicAMI Issue In OpenFOAM 2.2.0 prasant OpenFOAM Running, Solving & CFD 17 March 16, 2013 02:00
Meshing related issue in Flow EFD appu FloEFD, FloWorks & FloTHERM 1 May 22, 2011 08:27


All times are GMT -4. The time now is 15:45.