|
[Sponsors] |
August 28, 2023, 05:58 |
Static equation solving
|
#1 |
New Member
Hamza El Fathi
Join Date: Aug 2023
Posts: 6
Rep Power: 3 |
Hello,
I'm trying to solve a static equation in OpenFOAM (without time derivatives). Initially, I removed the time derivative from the scalarTransportFoam solver and the simple time loop with no results. I also tried retaining the time loop and running the simulation for one step, yet didnt work either. I'm seeking assistance here to know whether anyone is aware of a static solver (no time derivative term in the equation) within OpenFOAM that I could potentially adapt for my specific case. |
|
August 28, 2023, 11:42 |
|
#2 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
Quote:
laplacianFoam? It doesn't get much simpler than that. |
||
August 29, 2023, 10:45 |
|
#3 |
New Member
Hamza El Fathi
Join Date: Aug 2023
Posts: 6
Rep Power: 3 |
I checked laplacian foam and it seems to have a time loop.
|
|
August 29, 2023, 12:38 |
|
#4 |
Senior Member
|
laplacianFoam does indeed have a while(simple.loop()).
See e.g. line 85 of https://develop.openfoam.com/Develop...aplacianFoam.C Even if ddtSchemes in systems/fvSchemes is set steadySteady, the loop remains (most obviously). Two possible scenarios exist. 1/ The source term is linear in the state variable solved for, and the residual of the SIMPLE iteration drops to a very small number in only one iteration. Only one iteration is required. 2/ The source term is non-linear in the state variable solved for, and various iterations are required to bring the residual of the SIMPLE iteration to a small number. |
|
August 30, 2023, 06:14 |
|
#5 |
New Member
Hamza El Fathi
Join Date: Aug 2023
Posts: 6
Rep Power: 3 |
The simulation does indeed stop after the first iteration.But it does not provide any notification of the solving process for that iteration, and I do not receive any output.
|
|
August 30, 2023, 09:41 |
|
#7 |
New Member
Hamza El Fathi
Join Date: Aug 2023
Posts: 6
Rep Power: 3 |
Here is it and thanks for helping:
Create time Create mesh for time = 0 SIMPLE: no convergence criteria found. Calculations will run for 1 steps. Reading field T Reading field U Reading transportProperties Reading diffusivity DT Reading/calculating face flux field phi No finite volume options present Calculating scalar transport Courant Number mean: 0.0495 max: 0.0495 Time = 0.001 hamza469@DESKTOP:~/1D$ |
|
September 1, 2023, 11:33 |
|
#9 |
New Member
Hamza El Fathi
Join Date: Aug 2023
Posts: 6
Rep Power: 3 |
Thank you for your help. The steadyState option is indeed more practical than modifying the solver. I figured out that my mistake was that the boundary conditions were not defined correctly.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
chtMultiRegionSimpleFoam turbulent case | Aditya Patil | OpenFOAM Running, Solving & CFD | 6 | April 24, 2017 23:13 |
HeatSource BC to the whole region in chtMultiRegionHeater | xsa | OpenFOAM Running, Solving & CFD | 3 | November 7, 2016 06:07 |
pisoFoam with k-epsilon turb blows up - Some questions | Heroic | OpenFOAM Running, Solving & CFD | 26 | December 17, 2012 04:34 |
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 | bookie56 | OpenFOAM Installation | 8 | August 13, 2011 05:03 |
Could anybody help me see this error and give help | liugx212 | OpenFOAM Running, Solving & CFD | 3 | January 4, 2006 19:07 |