| #
efe9d856
|
| 19-Jul-2022 |
James Wright <james@jameswright.xyz> |
fluids: Use function pointers for StateFrom*, Misc fixes
- Fixes: I missed some StateFrom* functions that needed to be changed
|
| #
57e55a1c
|
| 18-Jul-2022 |
James Wright <james@jameswright.xyz> |
fluids: Make newtonian boundary QFs primitive compatible
|
| #
dc805cc4
|
| 18-Jul-2022 |
Leila Ghaffari <49916147+LeilaGhaffari@users.noreply.github.com> |
Fluids - Newtonian with Primitive variables (#1011)
* Fluids - Initial commit for Newtonian primitive variables
* Fluids - include A0 (dU/dY) in the output
* Fluids - added ICs for IG in primi
Fluids - Newtonian with Primitive variables (#1011)
* Fluids - Initial commit for Newtonian primitive variables
* Fluids - include A0 (dU/dY) in the output
* Fluids - added ICs for IG in primitive variables
* Fluids - added Jacobean QFunction for primitive variables
* Fluids - added RHS QFunction for primitive variables
* Fluids - fixed compilation errors and warnings
* Fluids - added ICs for density_current with primitive variables
* Fluids - In/OutFlow BCs for channel in primitive variables
* Adding the missing parts after rebasing onto main
* Fluids - Use correct component names for primitive variables
* Fluids - Primitive variables supported only with implicit scheme
* Fluids - drop in/outflow for channel flow and call Exact_Channel_Prim() in Exact_Channel()
* Fluids - Set solver's QFunction data in an if-else statement
* Fluids - style
* Fluids - add a comment to explain why the the gravity body force is excluded from the potential energy.
* Fluids - Exact_Channel return State
* Fluids - density_current: some style and cleanup
* Fluids - DC: refactor & cleanup
* Fluids - Singel QFunction for prim&cons
* Fluids - Use absolute temperature
* Fluids - DC: Fix pressure
show more ...
|
| #
13862402
|
| 24-Jun-2022 |
James Wright <james@jameswright.xyz> |
Merge pull request #1010 from CEED/jrwrigh/fluids_qfutils
|
| #
13fa47b2
|
| 23-Jun-2022 |
James Wright <james@jameswright.xyz> |
fluids: Combine misc QF helpers into utils.h
|
| #
c766f598
|
| 22-Jun-2022 |
James Wright <james@jameswright.xyz> |
Merge pull request #980 from CEED/jrwrigh/fluids_tractionbc
|
| #
b55ac660
|
| 07-Jun-2022 |
James Wright <james@jameswright.xyz> |
examples/fluids: Viscous flux for BoundaryIntegral jacobian
|
| #
0ec2498e
|
| 10-Jun-2022 |
James Wright <james@jameswright.xyz> |
examples/fluids: Add viscous flux to POutflow Jacobian
|
| #
b5d317f8
|
| 07-Jun-2022 |
James Wright <james@jameswright.xyz> |
examples/fluids: Move POutflow_Jac to State variables
- Verified to be exactly the same as before, just using the State structs and methods
|
| #
2c4e60d7
|
| 06-Jun-2022 |
James Wright <james@jameswright.xyz> |
examples/fluids: Add viscous flux to StrongInflowBI
|
| #
ce9b5c20
|
| 06-Jun-2022 |
James Wright <james@jameswright.xyz> |
examples/fluids: Add viscous flux to POutflow BC
|
| #
30e9fa81
|
| 06-Jun-2022 |
James Wright <james@jameswright.xyz> |
examples/fluids: Move blasius outflow to newtonian.h
|
| #
65dd5caf
|
| 06-Jun-2022 |
James Wright <james@jameswright.xyz> |
examples/fluids: Move StrongSTGbcFunc to newtonian.h
- Requires significant changes to how the stg_context is passed to the the strong bc
|
| #
c6e8c570
|
| 05-Jun-2022 |
James Wright <james@jameswright.xyz> |
examples/fluids: Abstract State and helper funcs
|
| #
502edf57
|
| 06-Jun-2022 |
Jed Brown <jed@jedbrown.org> |
Merge pull request #962 from CEED/jed/fluids-jacobian
examples/fluids: add analytic Jacobian
|
| #
39c69132
|
| 24-May-2022 |
Jed Brown <jed@jedbrown.org> |
examples/fluids: fix zero-size Jacobian data and STG
Use -snes_fd_color for now because STG inflow Jacobian isn't implemented.
|
| #
3c4b7af6
|
| 23-May-2022 |
Jed Brown <jed@jedbrown.org> |
Merge branch 'main' into jed/fluids-jacobian
* main: Fluids - Add STG inflow (#868) ci - fix Nek5000 testing
|
| #
ba6664ae
|
| 22-May-2022 |
James Wright <james@jameswright.xyz> |
Fluids - Add STG inflow (#868)
* doc(fluids): Add STG equations
* doc(fluids): Add basic data flow for STG
* doc(fluids): Add Shur et al. 2014 STG paper to bib
* doc(fluids): Specify STG in
Fluids - Add STG inflow (#868)
* doc(fluids): Add STG equations
* doc(fluids): Add basic data flow for STG
* doc(fluids): Add Shur et al. 2014 STG paper to bib
* doc(fluids): Specify STG inputs files, misc additions
* doc(fluids): Add intro for STG section
* fix(fluids): Add #include ceed.h for qfunctions
- In the spirit of "include what you use"
* feat(fluids): Start work on stg_shur14.h
* doc-fix: Correct kappa_min definition
* Move STG setup functions to problems/stg_shur14
* feat: Add cholesky decomposition function
* fix: Correct stg_ctx malloc, reorganize creation
Co-authored-by: Jed Brown <jed@jedbrown.org>
* fix(fluids): Correct return values of functions
* style: Fix up style
* feat(fluids): Get file paths from PetscOptions
- Also convert SetupSTGContext to return PetscErrorCode
* fix(fluids): Correct stg_ctx dereferencing
- Also move to size_t for type of the offsets
* feat(fluids): Add funcs for processing STG*.dat files
* feat(fluids): Move to PetscOptions* for STG flags
* feat: Use `PetscMax` instead of macro
* fix(fluids): Correct/Refactor file reading functions
- Move to `PetscSynchronizedFGets`
- Remove `inline`
- Pass `comm` between functions
- Add `OpenPHASTADatFile` to DRY
* docs(fluids): Fix equation typo
* fix(fluids): Correct calculation of kappa
* feat(fluids): Complete STGShur14_Calc
* feat(fluids): Add InterpolateProfile helper func
* feat(fluids): Add CalcSpectrum helper func
* feat(fluids): Add to STGShur14_Calc qfunction
* fix: Add M_PI, Update SETERRQ functions
- Also update style
* fix: Correct interpolation outside of datarange
* fix: Add missing definition for ke in CalcSpectrum
* feat: Migrate context and func signatures, Misc
- Create SetupSTGContext to be run in another Setup_____Context
function
- Migrate STGShur14Context, CreateSTGContext, and SetupSTGContext
signatures to navierstokes.h
- Add STG contexts to Physics and CeedData
- Add missing CHKERRQ to PetscFClose
- Move to SPDX license headers
* examples/fluids: Pass solution time via context label
* feat: Implement STG boundary integral
- Add theta0 and implicit members to STGShur14Context
- Tested via implementation to the blasius BL problem (though this will
probably go against the code history)
* feat: Fix STG Stuff
* feat: Implement STG inflow for blasius BL
- Note that fluctuations are turned off in this case
* examples/fluids: Add stg_mean_only flag
* examples/fluids: Check cholesky decomp for nans
- Also correct locaiton of cholesky decomposition in ReadSTGInflow()
* examples/fluids: Correct STG documentation
- Missing a 2 sqrt(3/2) factor and didn't take square root of q
* examples/fluids: Fix STGShur14_Calc
- Given the calculated spectrum, calculation of v' and u' verified
against python implementation (which was validated previously against
PHASTA)
* examples/fluids: Calc dXdx for boundary QFunctions
- Also calculate h from the dXdx in STGShur14_Inflow
- Replace h[0] result with constant dx spacing
* examples/fluids: Fix STG Spectra calcualtion
* examples/fluids: Fix build errors
- Ran into an include cycle collision that resulted in over-defining
SetupContext in advection.c
- newtonian_types.h (which has SetupContext defined) ->
stg_shur14_type.h -> navierstokes.h -> advection.c
* examples/fluids: Update and fix documentation
* examples/fluids: Correct dXdx comment, leave TODO
Co-authored-by: Jed Brown <jed@jedbrown.org>
* examples/fluids: Minor bib citation edits
Co-authored-by: Jed Brown <jed@jedbrown.org>
* examples/fluids: Add STGInflow.dat, fix blasius.yaml
* examples/fluids: int -> PetscInt | CeedInt
* examples/fluids: Style
* examples/fluids: Make Boolean names verb_noun format
- Also changes the stg flag to `-stg_use`
* examples/fluids: Add STG test
* examples/fluids: Style fix up
* examples/fluids: Update docs
* examples/fluids: Implement weakT option for STG
* examples/fluids: Fix casting for ROCm
* examples/fluids: avoid PETSc dependency in qfunctions
* examples/fluids: header cleanup
* backends/hip: avoid redundant inline
* examples/fluids: avoid VLA in qfunctions
GPUs don't like VLA and some compilers reject it when targeting GPUs.
* examples/fluids: Create STG_NMODES_MAX
* examples/fluids: Refactor stg setup out of blasius.c
* examples/fluids: Fix misc GPU bugs
Co-authored-by: Jed Brown <jed@jedbrown.org>
show more ...
|
| #
e334ad8f
|
| 13-May-2022 |
Jed Brown <jed@jedbrown.org> |
examples/fluids: add IJacobian for SUPG
I think this is exact for Galerkin on channel.yaml and blasius.yaml. Specifically, SNES converges almost perfectly in this test than when -snes_mf_operator is
examples/fluids: add IJacobian for SUPG
I think this is exact for Galerkin on channel.yaml and blasius.yaml. Specifically, SNES converges almost perfectly in this test than when -snes_mf_operator is added.
-options_file examples/fluids/channel.yaml -snes_monitor -ksp_converged_reason -stab none -ts_max_steps 3 -newtonian_unit_tests -ksp_rtol 1e-10 -order 2 -ts_dt 3e-6 -pc_type lu
I say "think" because something is fishy with the viscous energy term velocity*stress. If I disable that term, then convergence is clearly better with the analytic Jacobian (makes sense because it's accuracy is machine epsilon) than with -snes_mf_operator. This is unexpected, but the difference is near the limit of numerical stability so I'm not confident it's wrong. Also, the term itself is so simple.
The Jacobian is inexact for SUPG in that Tau_d is frozen.
WIP: examples/fluids: support MatShell and Blasius_Inflow_Jacobian
show more ...
|
| #
a3ae0734
|
| 12-May-2022 |
Jed Brown <jed@jedbrown.org> |
examples/fluids: record state and tau in preparation for Jacobian
Change notation from dq to Grad_q so that dq can be used consistently as variations.
|
| #
6f00d0e6
|
| 11-May-2022 |
Jed Brown <jed@jedbrown.org> |
examples/fluids: small consolidation
|
| #
5c677226
|
| 11-May-2022 |
Jed Brown <jed@jedbrown.org> |
examples/fluids: factor Newtonian with better helpers
|
| #
0228c988
|
| 10-May-2022 |
Jed Brown <jed@jedbrown.org> |
Merge pull request #958 from CEED/jed/fluids-cleaning
examples/fluids cleaning
|
| #
a0add3c9
|
| 10-May-2022 |
Jed Brown <jed@jedbrown.org> |
examples/fluids: make setup contexts independent
These are now private to each example and can be developed independently.
|
| #
841e4c73
|
| 09-May-2022 |
Jed Brown <jed@jedbrown.org> |
examples/fluids: consolidate two-step setup
Contexts are created in one place now and we have removed duplicate struct definitions for physics.
|