-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 3c42365 Author: Weston Ortiz <[email protected]> Date: Thu Aug 8 14:59:31 2024 -0600 add clang format script commit 67506ab Merge: 2f60388 e33cc79 Author: Weston Ortiz <[email protected]> Date: Thu Aug 8 14:48:18 2024 -0600 Merge remote-tracking branch 'wortiz/line_search' into next commit 2f60388 Merge: a08cb0f 616486c Author: Weston Ortiz <[email protected]> Date: Wed Aug 7 09:31:48 2024 -0600 Merge remote-tracking branch 'wortiz/autodiff' into next commit 616486c Author: Weston Ortiz <[email protected]> Date: Wed Jun 26 12:29:59 2024 -0600 tmp commit 26d9d0e Merge: 5230681 85ebd3f Author: Weston Ortiz <[email protected]> Date: Tue Jun 25 15:41:14 2024 -0600 Merge remote-tracking branch 'wortiz/autodiff' into autodiff commit 85ebd3f Author: Weston Ortiz <[email protected]> Date: Tue May 21 15:07:52 2024 -0600 tmp commit be006fd Merge: d419e32 ef327c6 Author: Weston Ortiz <[email protected]> Date: Wed Apr 17 10:44:36 2024 -0600 Merge remote-tracking branch 'origin/main' into turb_ad commit d419e32 Author: Weston Ortiz <[email protected]> Date: Wed Apr 17 10:43:36 2024 -0600 tmp2 commit 93d78ee Author: Weston Ortiz <[email protected]> Date: Fri Apr 12 07:58:40 2024 -0600 seems to be working commit eba9432 Merge: 64e7005 4b42444 Author: Weston Ortiz <[email protected]> Date: Thu Apr 11 16:17:06 2024 -0600 Merge remote-tracking branch 'origin/main' into turb_ad commit 64e7005 Author: Weston Ortiz <[email protected]> Date: Thu Apr 11 16:16:30 2024 -0600 tmp commit fac923d Author: Weston Ortiz <[email protected]> Date: Mon Apr 8 10:03:45 2024 -0600 strat commit bbf6385 Merge: 98c3a6a ee57170 Author: Weston Ortiz <[email protected]> Date: Mon Apr 8 10:01:58 2024 -0600 Merge remote-tracking branch 'wortiz/turb_ad' into turb_ad commit ee57170 Author: Weston Ortiz <[email protected]> Date: Mon Apr 8 09:57:51 2024 -0600 clang format commit 98c3a6a Author: Weston Ortiz <[email protected]> Date: Mon Apr 8 09:50:50 2024 -0600 clang format commit fad2976 Author: Weston Ortiz <[email protected]> Date: Mon Apr 8 09:42:49 2024 -0600 tmpone commit 649233a Author: Weston Ortiz <[email protected]> Date: Thu Mar 21 13:45:08 2024 -0600 tmp commit 3eaef70 Author: Weston Ortiz <[email protected]> Date: Tue Mar 12 09:51:47 2024 -0600 basic backtracking appears to work commit e15b067 Author: Weston Ortiz <[email protected]> Date: Thu Mar 21 13:47:05 2024 -0600 tmp commit de6a130 Author: Weston Ortiz <[email protected]> Date: Thu Mar 7 17:06:01 2024 -0700 backtrack print commit 1b1e970 Author: Weston Ortiz <[email protected]> Date: Thu Mar 7 16:55:24 2024 -0700 backtrace_start commit 2a1ec86 Author: Weston Ortiz <[email protected]> Date: Thu Feb 22 09:41:02 2024 -0700 semi working stabilization for sqrt_Conf commit a00abfc Author: Weston Ortiz <[email protected]> Date: Mon Feb 19 12:06:42 2024 -0700 not working for sharkskin commit 4e038ca Author: Weston Ortiz <[email protected]> Date: Fri Feb 9 15:50:17 2024 -0700 tmp commit b43acb5 Author: Weston Ortiz <[email protected]> Date: Fri Feb 9 13:54:53 2024 -0700 tmp update commit 78c7206 Author: Weston Ortiz <[email protected]> Date: Thu Feb 8 08:48:05 2024 -0700 add missing commit 9c5a053 Author: Weston Ortiz <[email protected]> Date: Mon Apr 8 09:44:34 2024 -0600 tmp commit 7959d5c Author: Weston Ortiz <[email protected]> Date: Thu Mar 21 13:45:08 2024 -0600 tmp commit 8d1f2ea Author: Weston Ortiz <[email protected]> Date: Tue Mar 12 09:51:47 2024 -0600 basic backtracking appears to work commit 1fd075f Author: Weston Ortiz <[email protected]> Date: Fri Feb 16 11:06:10 2024 -0700 fix echo flag print 3d bc dup (goma#452) commit 94051f6 Author: Weston Ortiz <[email protected]> Date: Fri Feb 9 14:36:51 2024 -0700 3d bc dup (goma#451) * Add flag for 3D BC duplication printing * add doc file * try to fix docs commit dd2c7ac Author: Weston Ortiz <[email protected]> Date: Tue Feb 6 13:49:36 2024 -0700 White metzner (goma#450) * Start on White-Metzner readdition * WM bugfix commit e33cc79 Author: Weston Ortiz <[email protected]> Date: Tue Mar 12 09:51:47 2024 -0600 basic backtracking appears to work commit f13cf11 Author: Weston Ortiz <[email protected]> Date: Thu Mar 7 17:06:01 2024 -0700 backtrack print commit 7c3f8b3 Author: Weston Ortiz <[email protected]> Date: Thu Mar 7 17:06:01 2024 -0700 backtrack print commit 34f5cdc Author: Weston Ortiz <[email protected]> Date: Thu Mar 7 16:55:24 2024 -0700 backtrace_start commit de2532f Author: Weston Ortiz <[email protected]> Date: Thu Mar 7 16:55:24 2024 -0700 backtrace_start commit f106535 Author: Weston Ortiz <[email protected]> Date: Thu Feb 22 09:41:02 2024 -0700 semi working stabilization for sqrt_Conf commit d69730d Author: Weston Ortiz <[email protected]> Date: Mon Feb 19 12:06:42 2024 -0700 not working for sharkskin commit aeaadab Author: Weston Ortiz <[email protected]> Date: Fri Feb 9 15:50:17 2024 -0700 tmp commit d3ea2f0 Author: Weston Ortiz <[email protected]> Date: Fri Feb 9 13:54:53 2024 -0700 tmp update commit db70339 Author: Weston Ortiz <[email protected]> Date: Thu Feb 8 08:48:05 2024 -0700 add missing commit 5fb2817 Author: Weston Ortiz <[email protected]> Date: Thu Jan 25 11:55:20 2024 -0700 tmp
- Loading branch information
Showing
50 changed files
with
7,824 additions
and
222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#include "ad_turbulence.h" | ||
|
||
#ifdef __cplusplus | ||
void ad_ve_polymer_stress(ADType gamma[DIM][DIM], ADType stress[DIM][DIM]); | ||
void ad_fluid_stress(ADType Pi[DIM][DIM]); | ||
int ad_momentum_source_term(ADType f[DIM], /* Body force. */ | ||
dbl time); | ||
ADType ad_viscosity(struct Generalized_Newtonian *gn_local, ADType gamma_dot[DIM][DIM]); | ||
#endif | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
int ad_assemble_momentum(dbl time, /* current time */ | ||
dbl tt, /* parameter to vary time integration from | ||
explicit (tt = 1) to implicit (tt = 0) */ | ||
dbl dt, /* current time step size */ | ||
dbl h_elem_avg, /* average global element size for PSPG*/ | ||
const PG_DATA *pg_data, | ||
double xi[DIM], /* Local stu coordinates */ | ||
const Exo_DB *exo); | ||
|
||
int ad_assemble_continuity(dbl time_value, /* current time */ | ||
dbl tt, /* parameter to vary time integration from | ||
explicit (tt = 1) to implicit (tt = 0) */ | ||
dbl dt, /* current time step size */ | ||
const PG_DATA *pg_data); | ||
int ad_assemble_stress_sqrt_conf(dbl tt, /* parameter to vary time integration from | ||
* explicit (tt = 1) to implicit (tt = 0) */ | ||
dbl dt, /* current time step size */ | ||
PG_DATA *pg_data); | ||
|
||
dbl ad_viscosity_wrap(struct Generalized_Newtonian *gn_local); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
#ifndef GOMA_AD_TURBULENCE_H | ||
#define GOMA_AD_TURBULENCE_H | ||
|
||
#ifdef GOMA_ENABLE_SACADO | ||
|
||
#ifdef __cplusplus | ||
#include <Sacado.hpp> | ||
extern "C" { | ||
#include "el_elm.h" | ||
#include "mm_mp_const.h" | ||
#include "std.h" | ||
} | ||
using ADType = Sacado::Fad::DFad<double>; | ||
void ad_supg_tau_shakib(ADType &supg_tau, int dim, dbl dt, ADType diffusivity, int interp_eqn); | ||
struct AD_Basis { | ||
ADType d_phi[MDE][DIM]; /* d_phi[i][a] = d(phi_i)/d(q_a) */ | ||
ADType grad_phi[MDE][DIM]; /* grad_phi[i][a] = e_a . grad(phi_i) */ | ||
ADType grad_phi_e[MDE][DIM][DIM][DIM]; /* grad_phi_e[i][a][p][q] */ | ||
/* = (e_p e_q): grad(phi_i e_a) */ | ||
ADType curl_phi_e[MDE][DIM][DIM]; | ||
}; | ||
struct AD_Field_Variables { | ||
AD_Field_Variables() = default; | ||
std::vector<AD_Basis> basis; | ||
ADType detJ; | ||
ADType J[DIM][DIM]; | ||
ADType B[DIM][DIM]; | ||
ADType v[DIM]; | ||
ADType v_dot[DIM]; | ||
ADType x[DIM]; | ||
ADType d[DIM]; | ||
ADType x_dot[DIM]; | ||
ADType grad_v[DIM][DIM]; | ||
ADType G[DIM][DIM]; | ||
ADType grad_G[DIM][DIM][DIM]; | ||
ADType div_G[DIM]; | ||
ADType S[MAX_MODES][DIM][DIM]; | ||
ADType S_dot[MAX_MODES][DIM][DIM]; | ||
ADType grad_S[MAX_MODES][DIM][DIM][DIM]; | ||
ADType div_S[MAX_MODES][DIM]; | ||
ADType grad_SH[DIM]; | ||
ADType P; | ||
ADType SH; | ||
ADType grad_P[DIM]; | ||
ADType eddy_nu; | ||
ADType eddy_nu_dot; | ||
ADType grad_eddy_nu[DIM]; | ||
ADType turb_k; | ||
ADType turb_k_dot; | ||
ADType grad_turb_k[DIM]; | ||
ADType turb_omega; | ||
ADType turb_omega_dot; | ||
ADType grad_turb_omega[DIM]; | ||
int total_ad_variables; | ||
int ielem; | ||
int offset[V_LAST]; | ||
}; | ||
|
||
extern AD_Field_Variables *ad_fv; | ||
int ad_calc_shearrate(ADType &gammadot, /* strain rate invariant */ | ||
ADType gamma_dot[DIM][DIM]); /* strain rate tensor */ | ||
|
||
void ad_only_tau_momentum_shakib(ADType &tau, int dim, dbl dt, int pspg_scale); | ||
ADType ad_sa_viscosity(struct Generalized_Newtonian *gn_local); | ||
ADType ad_only_turb_k_omega_viscosity(void); | ||
void compute_sst_blending(ADType &F1, ADType &F2); | ||
ADType sst_viscosity(const ADType &Omega, const ADType &F2); | ||
extern "C" { | ||
#endif | ||
|
||
#include "mm_as_structs.h" | ||
#include "mm_fill_stabilization.h" | ||
#include "mm_mp_structs.h" | ||
#include "std.h" | ||
|
||
void ad_tau_momentum_shakib(momentum_tau_terms *tau_terms, int dim, dbl dt, int pspg_scale); | ||
|
||
int ad_assemble_turb_k(dbl time_value, /* current time */ | ||
dbl tt, /* parameter to vary time integration from | ||
explicit (tt = 1) to implicit (tt = 0) */ | ||
dbl dt, /* current time step size */ | ||
const PG_DATA *pg_data); | ||
|
||
void ad_sa_wall_func(double func[DIM], double d_func[DIM][MAX_VARIABLE_TYPES + MAX_CONC][MDE]); | ||
dbl ad_turb_k_omega_sst_viscosity(VISCOSITY_DEPENDENCE_STRUCT *d_mu); | ||
|
||
int ad_assemble_turb_omega(dbl time_value, /* current time */ | ||
dbl tt, /* parameter to vary time integration from | ||
explicit (tt = 1) to implicit (tt = 0) */ | ||
dbl dt, /* current time step size */ | ||
const PG_DATA *pg_data); | ||
dbl ad_sa_viscosity(struct Generalized_Newtonian *gn_local, VISCOSITY_DEPENDENCE_STRUCT *d_mu); | ||
void fill_ad_field_variables(); | ||
int ad_assemble_spalart_allmaras(dbl time_value, /* current time */ | ||
dbl tt, /* parameter to vary time integration from | ||
explicit (tt = 1) to implicit (tt = 0) */ | ||
dbl dt, /* current time step size */ | ||
const PG_DATA *pg_data); | ||
int ad_assemble_turb_k_modified(dbl time_value, /* current time */ | ||
dbl tt, /* parameter to vary time integration from | ||
explicit (tt = 1) to implicit (tt = 0) */ | ||
dbl dt, /* current time step size */ | ||
const PG_DATA *pg_data); | ||
int ad_assemble_turb_omega_modified(dbl time_value, /* current time */ | ||
dbl tt, /* parameter to vary time integration from | ||
explicit (tt = 1) to implicit (tt = 0) */ | ||
dbl dt, /* current time step size */ | ||
const PG_DATA *pg_data); | ||
int ad_assemble_turb_k_omega_modified(dbl time_value, /* current time */ | ||
dbl tt, /* parameter to vary time integration from | ||
explicit (tt = 1) to implicit (tt = 0) */ | ||
dbl dt, /* current time step size */ | ||
const PG_DATA *pg_data); | ||
int ad_assemble_k_omega_sst_modified(dbl time_value, /* current time */ | ||
dbl tt, /* parameter to vary time integration from | ||
explicit (tt = 1) to implicit (tt = 0) */ | ||
dbl dt, /* current time step size */ | ||
const PG_DATA *pg_data); | ||
int ad_assemble_invariant(double tt, /* parameter to vary time integration from | ||
* explicit (tt = 1) to implicit (tt = 0) */ | ||
double dt); /* time step size */ | ||
void ad_omega_wall_func(double func[DIM], double d_func[DIM][MAX_VARIABLE_TYPES + MAX_CONC][MDE]); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif | ||
|
||
#endif // GOMA_AD_TURBULENCE_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.