Skip to content

avRho=nan

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1930
    Mamin
    Member

    Hi All,
    I’m getting average density and energy nan. I have tried to change the parameters latticeL and LatticeU but didn’t help.
    What could be the reason for this.

    t=0.1; uMax=0; avEnergy=nan; avRho=nan

    Thanks

    #2690
    albert.mink
    Moderator

    Hi

    it seems that your simulation has diverged.

    Have a look in the .dat file in directory tmp and tell me the TAU

    Regards

    #2691
    Mamin
    Member

    I realized that this happened whrn I replaced
    bc.addVelocityBoundary( superGeometry, 3, omega );
    with:
    bc.addPressureBoundary( superGeometry, 3, omega );
    sLattice.defineRhoU( superGeometry, 3, rho, u );

    for the inflow boundary condition.

    Do you know why this happens? I thought I can choose velocity or pressure as boundary conditions.
    Thanks

    #2692
    albert.mink
    Moderator

    Well, you answered your question already. Do not put pressure boundary for outflow and for inflow. Wont’t work!

    #2693
    Mamin
    Member

    Thank you. Would you please explain why it won’t work? I’m new to the method but since I could do that in Navier-Stokes I want to know how to make similar system in LB in order to benchmark.
    (Since LB should converge to Navier-Stokes in the continuum regime)

    Thanks again

    #2694
    mathias
    Keymaster

    Please, come to our spring school next year. Best Mathias

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.