Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uniform flow not working in 3D #82

Open
msjvenegas opened this issue Dec 22, 2021 · 1 comment
Open

Uniform flow not working in 3D #82

msjvenegas opened this issue Dec 22, 2021 · 1 comment

Comments

@msjvenegas
Copy link

Description

In a 3D flow, the solver fails when using the boundary condition option vel_profile: uniform. It says:

image

I tried using Newton and SNES solvers, but both failed. I am currently using a workaround by using the vel_profile as power and the power exponent as 0.0001.

Steps to reproduce issue

  1. Use example 2-wind_farm_3D.yaml
  2. Change line "vel_profile: power" to "vel_profile: uniform"
  3. Run the script.

Current behavior

The solver fails in the first iteration with error "Solver did not converge"

Expected behavior

Solve the CFD problem with a uniform flow.

Code versions

Vanilla install using the steps in the install.sh.

  • Python 3.8.12
  • Dolfin: 2019.1.0
  • Pyoptsparse 1.0.0
  • Scipy 1.4.1
@jefalon
Copy link
Collaborator

jefalon commented Jan 3, 2022

I think the problem has to do with inconsistent boundary conditions. When a uniform inflow is used in 3D, it conflicts with the zero velocity BC on the ground. To fix this conflict, you would have to change the ground BC from no-slip to free-slip or no-stress.

boundary_condition:
    boundary_types:
        inflow:    ["west","north","south"]
        free_slip: ["top","bottom"]
        no_stress: ["east"]

Unfortunately, if you plan on changing the inflow angle, this "fix" won't really work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants