|
Neko 1.99.9
A portable framework for high-order spectral element flow simulations
|
Implements the entropy-based artificial viscosity model.
Data Types | |
| type | entropy_viscosity_t |
| Entropy-based artificial viscosity model for compressible flow. More... | |
Functions/Subroutines | |
| subroutine | entropy_viscosity_init (this, case, json) |
| Initialize the entropy viscosity model from a case and JSON parameters. | |
| subroutine | entropy_viscosity_free (this) |
| Free the entropy viscosity model. | |
| subroutine | entropy_viscosity_preprocess (this, time) |
| Compute the artificial viscosity before a time step. | |
| subroutine | entropy_viscosity_compute_residual (this, tstep, dt, dt_lag) |
| Compute the BDF entropy residual. | |
| subroutine | entropy_viscosity_compute_viscosity (this, tstep) |
| Compute and limit the entropy viscosity coefficient. | |
| subroutine | entropy_viscosity_smooth_viscosity (this) |
| Cross-element smoothing via gather-scatter averaging. Averages viscosity values at shared nodes between elements. | |
| subroutine | entropy_viscosity_apply_element_max (this) |
| Replace nodal viscosity values by the maximum in each element. | |
| subroutine | entropy_viscosity_set_fields (this, p, rho, u, v, w, max_wave_speed, msh, xh, gs, gamma) |
| Associate the fields and discretization used by the model. | |
| subroutine | entropy_viscosity_compute_entropy (this) |
| Compute entropy from the current pressure and density. | |
| subroutine | entropy_viscosity_restart (this, time) |
| Reinitialize entropy history from a restarted flow state. | |
| subroutine | entropy_viscosity_update_lag (this, time) |
| Shift the entropy history and compute the new entropy. | |
| subroutine | entropy_viscosity_col3_vector_cpu (us, vs, ws, u, v, w, s, n) |
| Multiply each velocity component by entropy on the CPU. | |
| subroutine | entropy_viscosity_abs_add_cpu (entropy_residual, div_field, n) |
| Add the flux divergence to the residual and take its absolute value. | |
| pure real(kind=rp) function | entropy_viscosity_low_order (this, i) |
| Compute low-order viscosity at one point. | |
| subroutine | entropy_viscosity_compute_h (this) |
Compute the characteristic mesh size. Adapted from les_model_compute_delta in les_model.f90. | |
|
private |
| entropy_residual | The entropy residual to update. |
| div_field | The entropy-flux divergence. |
| n | Number of field entries. |
Definition at line 538 of file entropy_viscosity.f90.

|
private |
| this | The entropy viscosity model. |
Definition at line 413 of file entropy_viscosity.f90.

|
private |
| us | Entropy-weighted first velocity component. |
| vs | Entropy-weighted second velocity component. |
| ws | Entropy-weighted third velocity component. |
| u | The first velocity component. |
| v | The second velocity component. |
| w | The third velocity component. |
| S | The entropy field. |
| n | Number of field entries. |
Definition at line 515 of file entropy_viscosity.f90.

|
private |
| this | The entropy viscosity model. |
Definition at line 465 of file entropy_viscosity.f90.

|
private |
| this | The entropy viscosity model. |
Definition at line 573 of file entropy_viscosity.f90.

|
private |
| this | The entropy viscosity model. |
| tstep | The current time-step index. |
| dt | The current time-step size. |
| dt_lag | Previous time-step sizes. |
Definition at line 233 of file entropy_viscosity.f90.

|
private |
| this | The entropy viscosity model. |
| tstep | The current time-step index. |
Definition at line 309 of file entropy_viscosity.f90.

|
private |
| this | The entropy viscosity model. |
Definition at line 192 of file entropy_viscosity.f90.
| subroutine entropy_viscosity::entropy_viscosity_init | ( | class(entropy_viscosity_t), intent(inout) | this, |
| class(case_t), intent(inout), target | case, | ||
| type(json_file), intent(inout) | json | ||
| ) |
| this | The entropy viscosity model. |
| case | The compressible-flow case. |
| json | The model configuration. |
Definition at line 152 of file entropy_viscosity.f90.
|
private |
| this | The entropy viscosity model. |
| i | The point index. |
Definition at line 559 of file entropy_viscosity.f90.
|
private |
| this | The entropy viscosity model. |
| time | The current time state. |
Definition at line 216 of file entropy_viscosity.f90.
|
private |
| this | The entropy viscosity model. |
| time | The restored time state. |
Definition at line 484 of file entropy_viscosity.f90.
|
private |
| this | The entropy viscosity model. |
| p | The pressure field. |
| rho | The density field. |
| u | The first velocity component. |
| v | The second velocity component. |
| w | The third velocity component. |
| max_wave_speed | The maximum characteristic wave speed. |
| msh | The computational mesh. |
| Xh | The function space. |
| gs | The gather-scatter operator. |
| gamma | The ratio of specific heats. |
Definition at line 441 of file entropy_viscosity.f90.
|
private |
| this | The entropy viscosity model. |
Definition at line 380 of file entropy_viscosity.f90.

|
private |
| this | The entropy viscosity model. |
| time | The current time state. |
Definition at line 496 of file entropy_viscosity.f90.