GithubHelp home page GithubHelp logo

Comments (7)

unicfdlab avatar unicfdlab commented on May 30, 2024

Hi, from the errorLog.txt it is seen that you have a very large continuity error just at the first iteration:

time step continuity errors : sum local = 0.000428673, global = 0.000428523, cumulative = 0

Later, pressure field diverges:

max/min p: 600000/-6952.36

I would recommend to change solver to PBiCGStab with DILU preconditioner, as well as to reduce target tolerance to 1e-8 and target relTol to 0.

If it doesn't work, then you can try to reduce order of spatial approximation by changing fvSchemes:

defaultAdvScheme uwpind;
defaultAdvSchemeV upwind;

After that you can try to avoid sharp initial pressure jump (max/min p: 600000/100709) -- you can start with small pressure difference 106000/100709 and then increase it during the simulation

If the error persists, you must post here you U/p/T BCs and adjoint equations

from hybridcentralsolvers.

atenamsv avatar atenamsv commented on May 30, 2024

Thanks for your tips, but unfortunately the error does not vanish.
here are the required files.
createFields.txt
pa.txt
T.txt
U.txt
Ua.txt
p.txt
PadjointShapeOptimizationFoam.txt

from hybridcentralsolvers.

atenamsv avatar atenamsv commented on May 30, 2024

Here i could see in each loop pressure is calculating 2 time, that's where density goes minus and causes crash.
errorLog2.txt

from hybridcentralsolvers.

unicfdlab avatar unicfdlab commented on May 30, 2024

Hello, it looks like there is a lot to be done with your custom solver. As the first step, can you post here LaTeX (PDF) or Doc file with derivation of equations?

from hybridcentralsolvers.

atenamsv avatar atenamsv commented on May 30, 2024

I want to use adjointShapeOptimization for a compressible flow.

adjointShapeOptimizationFoam.txt
createFields.txt

The default solver in openFoam is for incompressible flow, and uses SIMPLE algorithm.
I tried to remove simple solver loop and instead include pimpleCentral loop in adjointShapeOptimization.

Here is the derivation of the equations:
adjoint derivation equation.docx

Thanks in advance.

from hybridcentralsolvers.

atenamsv avatar atenamsv commented on May 30, 2024

PimpleAdjointShapeOptimizationFoam.txt

hEqn.txt
pEqn.txt
UEqn.txt

I tried to alter the solver, pEqn, UEqn and hEqn. now it is working, and goes some steps forward, but now the problem is that the temperature drops suddenly and rho goes to a big minus quantity, then it crashes.
errorLog.txt

from hybridcentralsolvers.

unicfdlab avatar unicfdlab commented on May 30, 2024

Hi, I think, you must add LTS support to your solver -- see https://github.com/unicfdlab/hybridCentralSolvers/blob/digitef-dev-1912/Sources/pimpleCentralFoam/pimpleCentralFoam.C and https://github.com/unicfdlab/hybridCentralSolvers/tree/digitef-dev-1912/Tutorials/compressible/LTS/ConvergingDivergingNozzle as examples.

After that, you have to try running your code w/o shape adjustment.

Also, if you use LTS, than maybe you have to add porosity alpha in temporal derivative term (I'm not sure)

from hybridcentralsolvers.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.