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

Internal Setting of field prevents OF to solve laplacian

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 22, 2014, 09:24
Default Internal Setting of field prevents OF to solve laplacian
  #1
bou
New Member
 
bou
Join Date: May 2014
Posts: 10
Rep Power: 11
bou is on a distinguished road
Dear,

I have developed a simple solver:

Code:
solve
        (
            S*fvm::ddt(H) == fvm::laplacian(K,H)
         );
U = -K*fvc::grad(H);
I precise that I am using groovyBc at the same time.

Everything works fine, however when I am setting K (volScalarField) using this from the solver :
Code:
 forAll(K,i){
     K[i] = 1.0;
}
OpenFoam computes only the first time step and just skip the rest without errors or warnings. I mean that for each time step it writes something like this in the log file as nothing changed in the BC:

Code:
DICPCG:  Solving for H, Initial residual = 2.64583e-08, Final residual = 2.64583e-08, No Iterations 0
I precise that I have tested the problem and this really comes form the internal setting of K, if I use the SetFieldDict instead and just comment the previous loop over K, everything works fine.

Thanks,

Bou
bou 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
Editing chtMultiRegionFoam to not solve velocity field tH3f0rC3 OpenFOAM 18 January 24, 2020 16:39
Is good initial guess field is neccessary ? mmkr825 OpenFOAM 5 October 17, 2012 12:58
Always crash when solve a C-D nozzle flow field using rhoCentralFoam hawklion OpenFOAM Running, Solving & CFD 0 March 9, 2011 06:13
Always crash when solve a C-D nozzle flow field using rhoCentralFoam hawklion OpenFOAM 3 March 8, 2011 19:03
Warning 097- AB Siemens 6 November 15, 2004 04:41


All times are GMT -4. The time now is 22:33.