PressureWaveFSIProblem< FLUID_ELEMENT, SOLID_ELEMENT > Class Template Reference

Problem class. More...

+ Inheritance diagram for PressureWaveFSIProblem< FLUID_ELEMENT, SOLID_ELEMENT >:

Public Member Functions

 PressureWaveFSIProblem ()
 Constructor. More...
 
void create_fluid_traction_elements ()
 Create the fluid traction elements. More...
 
void create_solid_traction_elements ()
 Create the solid traction elements. More...
 
void actions_before_implicit_timestep ()
 Update the problem specs before next timestep: Emtpy. More...
 
void doc_solution (DocInfo &doc_info)
 Doc solution. More...
 
 PressureWaveFSIProblem ()
 Constructor. More...
 
void create_fluid_traction_elements ()
 Create the fluid traction elements. More...
 
void create_poro_face_elements ()
 Create the poroelasticity traction/pressure elements. More...
 
void actions_before_implicit_timestep ()
 
void doc_solution (DocInfo &doc_info)
 Doc solution. More...
 
- Public Member Functions inherited from oomph::Problem
virtual void debug_hook_fct (const unsigned &i)
 
void set_analytic_dparameter (double *const &parameter_pt)
 
void unset_analytic_dparameter (double *const &parameter_pt)
 
bool is_dparameter_calculated_analytically (double *const &parameter_pt)
 
void set_analytic_hessian_products ()
 
void unset_analytic_hessian_products ()
 
bool are_hessian_products_calculated_analytically ()
 
void set_pinned_values_to_zero ()
 
bool distributed () const
 
virtual void actions_before_adapt ()
 
virtual void actions_after_adapt ()
 Actions that are to be performed after a mesh adaptation. More...
 
OomphCommunicator * communicator_pt ()
 access function to the oomph-lib communicator More...
 
const OomphCommunicator * communicator_pt () const
 access function to the oomph-lib communicator, const version More...
 
 Problem ()
 
 Problem (const Problem &dummy)=delete
 Broken copy constructor. More...
 
void operator= (const Problem &)=delete
 Broken assignment operator. More...
 
virtual ~Problem ()
 Virtual destructor to clean up memory. More...
 
Mesh *& mesh_pt ()
 Return a pointer to the global mesh. More...
 
Mesh *const & mesh_pt () const
 Return a pointer to the global mesh (const version) More...
 
Mesh *& mesh_pt (const unsigned &imesh)
 
Mesh *const & mesh_pt (const unsigned &imesh) const
 Return a pointer to the i-th submesh (const version) More...
 
unsigned nsub_mesh () const
 Return number of submeshes. More...
 
unsigned add_sub_mesh (Mesh *const &mesh_pt)
 
void flush_sub_meshes ()
 
void build_global_mesh ()
 
void rebuild_global_mesh ()
 
LinearSolver *& linear_solver_pt ()
 Return a pointer to the linear solver object. More...
 
LinearSolver *const & linear_solver_pt () const
 Return a pointer to the linear solver object (const version) More...
 
LinearSolver *& mass_matrix_solver_for_explicit_timestepper_pt ()
 
LinearSolver * mass_matrix_solver_for_explicit_timestepper_pt () const
 
EigenSolver *& eigen_solver_pt ()
 Return a pointer to the eigen solver object. More...
 
EigenSolver *const & eigen_solver_pt () const
 Return a pointer to the eigen solver object (const version) More...
 
Time *& time_pt ()
 Return a pointer to the global time object. More...
 
Time * time_pt () const
 Return a pointer to the global time object (const version). More...
 
double & time ()
 Return the current value of continuous time. More...
 
double time () const
 Return the current value of continuous time (const version) More...
 
TimeStepper *& time_stepper_pt ()
 
const TimeStepper * time_stepper_pt () const
 
TimeStepper *& time_stepper_pt (const unsigned &i)
 Return a pointer to the i-th timestepper. More...
 
ExplicitTimeStepper *& explicit_time_stepper_pt ()
 Return a pointer to the explicit timestepper. More...
 
unsigned long set_timestepper_for_all_data (TimeStepper *const &time_stepper_pt, const bool &preserve_existing_data=false)
 
virtual void shift_time_values ()
 Shift all values along to prepare for next timestep. More...
 
AssemblyHandler *& assembly_handler_pt ()
 Return a pointer to the assembly handler object. More...
 
AssemblyHandler *const & assembly_handler_pt () const
 Return a pointer to the assembly handler object (const version) More...
 
double & minimum_dt ()
 Access function to min timestep in adaptive timestepping. More...
 
double & maximum_dt ()
 Access function to max timestep in adaptive timestepping. More...
 
unsigned & max_newton_iterations ()
 Access function to max Newton iterations before giving up. More...
 
void problem_is_nonlinear (const bool &prob_lin)
 Access function to Problem_is_nonlinear. More...
 
double & max_residuals ()
 
bool & time_adaptive_newton_crash_on_solve_fail ()
 Access function for Time_adaptive_newton_crash_on_solve_fail. More...
 
double & newton_solver_tolerance ()
 
void add_time_stepper_pt (TimeStepper *const &time_stepper_pt)
 
void set_explicit_time_stepper_pt (ExplicitTimeStepper *const &explicit_time_stepper_pt)
 
void initialise_dt (const double &dt)
 
void initialise_dt (const Vector< double > &dt)
 
Data *& global_data_pt (const unsigned &i)
 Return a pointer to the the i-th global data object. More...
 
void add_global_data (Data *const &global_data_pt)
 
void flush_global_data ()
 
LinearAlgebraDistribution *const & dof_distribution_pt () const
 Return the pointer to the dof distribution (read-only) More...
 
unsigned long ndof () const
 Return the number of dofs. More...
 
unsigned ntime_stepper () const
 Return the number of time steppers. More...
 
unsigned nglobal_data () const
 Return the number of global data values. More...
 
unsigned self_test ()
 Self-test: Check meshes and global data. Return 0 for OK. More...
 
void enable_store_local_dof_pt_in_elements ()
 
void disable_store_local_dof_pt_in_elements ()
 
unsigned long assign_eqn_numbers (const bool &assign_local_eqn_numbers=true)
 
void describe_dofs (std::ostream &out= *(oomph_info.stream_pt())) const
 
void enable_discontinuous_formulation ()
 
void disable_discontinuous_formulation ()
 
void get_dofs (DoubleVector &dofs) const
 
void get_dofs (const unsigned &t, DoubleVector &dofs) const
 Return vector of the t'th history value of all dofs. More...
 
void set_dofs (const DoubleVector &dofs)
 Set the values of the dofs. More...
 
void set_dofs (const unsigned &t, DoubleVector &dofs)
 Set the history values of the dofs. More...
 
void set_dofs (const unsigned &t, Vector< double * > &dof_pt)
 
void add_to_dofs (const double &lambda, const DoubleVector &increment_dofs)
 Add lambda x incremenet_dofs[l] to the l-th dof. More...
 
double * global_dof_pt (const unsigned &i)
 
double & dof (const unsigned &i)
 i-th dof in the problem More...
 
double dof (const unsigned &i) const
 i-th dof in the problem (const version) More...
 
double *& dof_pt (const unsigned &i)
 Pointer to i-th dof in the problem. More...
 
double * dof_pt (const unsigned &i) const
 Pointer to i-th dof in the problem (const version) More...
 
virtual void get_inverse_mass_matrix_times_residuals (DoubleVector &Mres)
 
virtual void get_dvaluesdt (DoubleVector &f)
 
virtual void get_residuals (DoubleVector &residuals)
 Get the total residuals Vector for the problem. More...
 
virtual void get_jacobian (DoubleVector &residuals, DenseDoubleMatrix &jacobian)
 
virtual void get_jacobian (DoubleVector &residuals, CRDoubleMatrix &jacobian)
 
virtual void get_jacobian (DoubleVector &residuals, CCDoubleMatrix &jacobian)
 
virtual void get_jacobian (DoubleVector &residuals, SumOfMatrices &jacobian)
 
void get_fd_jacobian (DoubleVector &residuals, DenseMatrix< double > &jacobian)
 Get the full Jacobian by finite differencing. More...
 
void get_derivative_wrt_global_parameter (double *const &parameter_pt, DoubleVector &result)
 
void get_hessian_vector_products (DoubleVectorWithHaloEntries const &Y, Vector< DoubleVectorWithHaloEntries > const &C, Vector< DoubleVectorWithHaloEntries > &product)
 
void solve_eigenproblem (const unsigned &n_eval, Vector< std::complex< double >> &eigenvalue, Vector< DoubleVector > &eigenvector, const bool &steady=true)
 Solve the eigenproblem. More...
 
void solve_eigenproblem (const unsigned &n_eval, Vector< std::complex< double >> &eigenvalue, const bool &steady=true)
 
virtual void get_eigenproblem_matrices (CRDoubleMatrix &mass_matrix, CRDoubleMatrix &main_matrix, const double &shift=0.0)
 
void assign_eigenvector_to_dofs (DoubleVector &eigenvector)
 Assign the eigenvector passed to the function to the dofs. More...
 
void add_eigenvector_to_dofs (const double &epsilon, const DoubleVector &eigenvector)
 
void store_current_dof_values ()
 Store the current values of the degrees of freedom. More...
 
void restore_dof_values ()
 Restore the stored values of the degrees of freedom. More...
 
void enable_jacobian_reuse ()
 
void disable_jacobian_reuse ()
 Disable recycling of Jacobian in Newton iteration. More...
 
bool jacobian_reuse_is_enabled ()
 Is recycling of Jacobian in Newton iteration enabled? More...
 
bool & use_predictor_values_as_initial_guess ()
 
void newton_solve ()
 Use Newton method to solve the problem. More...
 
void enable_globally_convergent_newton_method ()
 enable globally convergent Newton method More...
 
void disable_globally_convergent_newton_method ()
 disable globally convergent Newton method More...
 
void newton_solve (unsigned const &max_adapt)
 
void steady_newton_solve (unsigned const &max_adapt=0)
 
void copy (Problem *orig_problem_pt)
 
virtual Problem * make_copy ()
 
virtual void read (std::ifstream &restart_file, bool &unsteady_restart)
 
virtual void read (std::ifstream &restart_file)
 
virtual void dump (std::ofstream &dump_file) const
 
void dump (const std::string &dump_file_name) const
 
void delete_all_external_storage ()
 
virtual void symmetrise_eigenfunction_for_adaptive_pitchfork_tracking ()
 
double * bifurcation_parameter_pt () const
 
void get_bifurcation_eigenfunction (Vector< DoubleVector > &eigenfunction)
 
void activate_fold_tracking (double *const &parameter_pt, const bool &block_solve=true)
 
void activate_bifurcation_tracking (double *const &parameter_pt, const DoubleVector &eigenvector, const bool &block_solve=true)
 
void activate_bifurcation_tracking (double *const &parameter_pt, const DoubleVector &eigenvector, const DoubleVector &normalisation, const bool &block_solve=true)
 
void activate_pitchfork_tracking (double *const &parameter_pt, const DoubleVector &symmetry_vector, const bool &block_solve=true)
 
void activate_hopf_tracking (double *const &parameter_pt, const bool &block_solve=true)
 
void activate_hopf_tracking (double *const &parameter_pt, const double &omega, const DoubleVector &null_real, const DoubleVector &null_imag, const bool &block_solve=true)
 
void deactivate_bifurcation_tracking ()
 
void reset_assembly_handler_to_default ()
 Reset the system to the standard non-augemented state. More...
 
double arc_length_step_solve (double *const &parameter_pt, const double &ds, const unsigned &max_adapt=0)
 
double arc_length_step_solve (Data *const &data_pt, const unsigned &data_index, const double &ds, const unsigned &max_adapt=0)
 
void reset_arc_length_parameters ()
 
int & sign_of_jacobian ()
 
void explicit_timestep (const double &dt, const bool &shift_values=true)
 Take an explicit timestep of size dt. More...
 
void unsteady_newton_solve (const double &dt)
 
void unsteady_newton_solve (const double &dt, const bool &shift_values)
 
void unsteady_newton_solve (const double &dt, const unsigned &max_adapt, const bool &first, const bool &shift=true)
 
double doubly_adaptive_unsteady_newton_solve (const double &dt, const double &epsilon, const unsigned &max_adapt, const bool &first, const bool &shift=true)
 
double doubly_adaptive_unsteady_newton_solve (const double &dt, const double &epsilon, const unsigned &max_adapt, const unsigned &suppress_resolve_after_spatial_adapt_flag, const bool &first, const bool &shift=true)
 
double adaptive_unsteady_newton_solve (const double &dt_desired, const double &epsilon)
 
double adaptive_unsteady_newton_solve (const double &dt_desired, const double &epsilon, const bool &shift_values)
 
void assign_initial_values_impulsive ()
 
void assign_initial_values_impulsive (const double &dt)
 
void calculate_predictions ()
 Calculate predictions. More...
 
void enable_mass_matrix_reuse ()
 
void disable_mass_matrix_reuse ()
 
bool mass_matrix_reuse_is_enabled ()
 Return whether the mass matrix is being reused. More...
 
void refine_uniformly (const Vector< unsigned > &nrefine_for_mesh)
 
void refine_uniformly (const Vector< unsigned > &nrefine_for_mesh, DocInfo &doc_info)
 
void refine_uniformly_and_prune (const Vector< unsigned > &nrefine_for_mesh)
 
void refine_uniformly_and_prune (const Vector< unsigned > &nrefine_for_mesh, DocInfo &doc_info)
 
void refine_uniformly (DocInfo &doc_info)
 
void refine_uniformly_and_prune (DocInfo &doc_info)
 
void refine_uniformly ()
 
void refine_uniformly (const unsigned &i_mesh, DocInfo &doc_info)
 Do uniform refinement for submesh i_mesh with documentation. More...
 
void refine_uniformly (const unsigned &i_mesh)
 Do uniform refinement for submesh i_mesh without documentation. More...
 
void p_refine_uniformly (const Vector< unsigned > &nrefine_for_mesh)
 
void p_refine_uniformly (const Vector< unsigned > &nrefine_for_mesh, DocInfo &doc_info)
 
void p_refine_uniformly_and_prune (const Vector< unsigned > &nrefine_for_mesh)
 
void p_refine_uniformly_and_prune (const Vector< unsigned > &nrefine_for_mesh, DocInfo &doc_info)
 
void p_refine_uniformly (DocInfo &doc_info)
 
void p_refine_uniformly_and_prune (DocInfo &doc_info)
 
void p_refine_uniformly ()
 
void p_refine_uniformly (const unsigned &i_mesh, DocInfo &doc_info)
 Do uniform p-refinement for submesh i_mesh with documentation. More...
 
void p_refine_uniformly (const unsigned &i_mesh)
 Do uniform p-refinement for submesh i_mesh without documentation. More...
 
void refine_selected_elements (const Vector< unsigned > &elements_to_be_refined)
 
void refine_selected_elements (const Vector< RefineableElement * > &elements_to_be_refined_pt)
 
void refine_selected_elements (const unsigned &i_mesh, const Vector< unsigned > &elements_to_be_refined)
 
void refine_selected_elements (const unsigned &i_mesh, const Vector< RefineableElement * > &elements_to_be_refined_pt)
 
void refine_selected_elements (const Vector< Vector< unsigned >> &elements_to_be_refined)
 
void refine_selected_elements (const Vector< Vector< RefineableElement * >> &elements_to_be_refined_pt)
 
void p_refine_selected_elements (const Vector< unsigned > &elements_to_be_refined)
 
void p_refine_selected_elements (const Vector< PRefineableElement * > &elements_to_be_refined_pt)
 
void p_refine_selected_elements (const unsigned &i_mesh, const Vector< unsigned > &elements_to_be_refined)
 
void p_refine_selected_elements (const unsigned &i_mesh, const Vector< PRefineableElement * > &elements_to_be_refined_pt)
 
void p_refine_selected_elements (const Vector< Vector< unsigned >> &elements_to_be_refined)
 
void p_refine_selected_elements (const Vector< Vector< PRefineableElement * >> &elements_to_be_refined_pt)
 
unsigned unrefine_uniformly ()
 
unsigned unrefine_uniformly (const unsigned &i_mesh)
 
void p_unrefine_uniformly (DocInfo &doc_info)
 
void p_unrefine_uniformly (const unsigned &i_mesh, DocInfo &doc_info)
 Do uniform p-unrefinement for submesh i_mesh without documentation. More...
 
void adapt (unsigned &n_refined, unsigned &n_unrefined)
 
void adapt ()
 
void p_adapt (unsigned &n_refined, unsigned &n_unrefined)
 
void p_adapt ()
 
void adapt_based_on_error_estimates (unsigned &n_refined, unsigned &n_unrefined, Vector< Vector< double >> &elemental_error)
 
void adapt_based_on_error_estimates (Vector< Vector< double >> &elemental_error)
 
void get_all_error_estimates (Vector< Vector< double >> &elemental_error)
 
void doc_errors (DocInfo &doc_info)
 Get max and min error for all elements in submeshes. More...
 
void doc_errors ()
 Get max and min error for all elements in submeshes. More...
 
void enable_info_in_newton_solve ()
 
void disable_info_in_newton_solve ()
 Disable the output of information when in the newton solver. More...
 
- Public Member Functions inherited from oomph::ExplicitTimeSteppableObject
 ExplicitTimeSteppableObject ()
 Empty constructor. More...
 
 ExplicitTimeSteppableObject (const ExplicitTimeSteppableObject &)=delete
 Broken copy constructor. More...
 
void operator= (const ExplicitTimeSteppableObject &)=delete
 Broken assignment operator. More...
 
virtual ~ExplicitTimeSteppableObject ()
 Empty destructor. More...
 
virtual void actions_before_explicit_stage ()
 
virtual void actions_after_explicit_stage ()
 

Private Types

enum  {
  Bottom_fluid_boundary , FSI_fluid_boundary , Top_fluid_boundary , Centreline_fluid_boundary ,
  Internal_boundary_layer_fluid_boundary
}
 Enumeration of fluid boundaries. More...
 
enum  {
  Bottom_poro_boundary , Outer_poro_boundary , Top_poro_boundary , FSI_poro_boundary ,
  Bottom_internal_poro_boundary , Top_internal_poro_boundary
}
 Enumeration of poro-elastic boundaries. More...
 

Private Member Functions

void setup_fsi ()
 setup fsi More...
 
void setup_fsi ()
 Setup fsi. More...
 

Private Attributes

TriangleMesh< FLUID_ELEMENT > * Fluid_mesh_pt
 Solid mesh. More...
 
TriangleMesh< SOLID_ELEMENT > * Solid_mesh_pt
 Fluid mesh. More...
 
Mesh * Solid_surface_mesh_pt
 Solid surface mesh on outside. More...
 
Mesh * FSI_solid_surface_mesh_pt
 Solid surface mesh at FSI interface. More...
 
Mesh * Inflow_fluid_surface_mesh_pt
 Inflow fluid surface mesh. More...
 
Mesh * FSI_fluid_surface_mesh_pt
 FSI fluid surface mesh. More...
 
TimeStepper * Solid_time_stepper_pt
 Pointer to wall timestepper. More...
 
TimeStepper * Fluid_time_stepper_pt
 Pointer to fluid timestepper. More...
 
MeshAsGeomObject * Fluid_mesh_geom_obj_pt
 Mesh as geom object representation of fluid mesh. More...
 
Vector< std::pair< FLUID_ELEMENT *, Vector< double > > > Regularly_spaced_plot_point
 
unsigned Lagrange_id
 Id for Lagrange multiplier constraint. More...
 
TriangleMesh< POROELASTICITY_ELEMENT > * Poro_mesh_pt
 Poroelasticity mesh. More...
 
Mesh * FSI_poro_surface_mesh_pt
 Poroelasticity surface mesh at FSI interface. More...
 
TimeStepper * Poro_time_stepper_pt
 Pointer to the poroelasticity timestepper. More...
 
Vector< std::pair< FLUID_ELEMENT *, Vector< double > > > Fluid_regularly_spaced_plot_point
 
MeshAsGeomObject * Solid_mesh_geom_obj_pt
 Mesh as geom object representation of solid mesh. More...
 
Vector< std::pair< POROELASTICITY_ELEMENT *, Vector< double > > > Solid_regularly_spaced_plot_point
 

Additional Inherited Members

- Public Types inherited from oomph::Problem
typedef void(* SpatialErrorEstimatorFctPt) (Mesh *&mesh_pt, Vector< double > &elemental_error)
 Function pointer for spatial error estimator. More...
 
typedef void(* SpatialErrorEstimatorWithDocFctPt) (Mesh *&mesh_pt, Vector< double > &elemental_error, DocInfo &doc_info)
 Function pointer for spatial error estimator with doc. More...
 
- Public Attributes inherited from oomph::Problem
bool Shut_up_in_newton_solve
 
- Static Public Attributes inherited from oomph::Problem
static bool Suppress_warning_about_actions_before_read_unstructured_meshes
 
- Protected Types inherited from oomph::Problem
enum  Assembly_method {
  Perform_assembly_using_vectors_of_pairs , Perform_assembly_using_two_vectors , Perform_assembly_using_maps , Perform_assembly_using_lists ,
  Perform_assembly_using_two_arrays
}
 Enumerated flags to determine which sparse assembly method is used. More...
 
- Protected Member Functions inherited from oomph::Problem
unsigned setup_element_count_per_dof ()
 
virtual void sparse_assemble_row_or_column_compressed (Vector< int * > &column_or_row_index, Vector< int * > &row_or_column_start, Vector< double * > &value, Vector< unsigned > &nnz, Vector< double * > &residual, bool compressed_row_flag)
 
virtual void actions_before_newton_solve ()
 
virtual void actions_after_newton_solve ()
 
virtual void actions_before_newton_convergence_check ()
 
virtual void actions_before_newton_step ()
 
virtual void actions_after_newton_step ()
 
virtual void actions_after_implicit_timestep ()
 
virtual void actions_after_implicit_timestep_and_error_estimation ()
 
virtual void actions_before_explicit_timestep ()
 Actions that should be performed before each explicit time step. More...
 
virtual void actions_after_explicit_timestep ()
 Actions that should be performed after each explicit time step. More...
 
virtual void actions_before_read_unstructured_meshes ()
 
virtual void actions_after_read_unstructured_meshes ()
 
virtual void actions_after_change_in_global_parameter (double *const &parameter_pt)
 
virtual void actions_after_change_in_bifurcation_parameter ()
 
virtual void actions_after_parameter_increase (double *const &parameter_pt)
 
double & dof_derivative (const unsigned &i)
 
double & dof_current (const unsigned &i)
 
virtual void set_initial_condition ()
 
virtual double global_temporal_error_norm ()
 
unsigned newton_solve_continuation (double *const &parameter_pt)
 
unsigned newton_solve_continuation (double *const &parameter_pt, DoubleVector &z)
 
void calculate_continuation_derivatives (double *const &parameter_pt)
 
void calculate_continuation_derivatives (const DoubleVector &z)
 
void calculate_continuation_derivatives_fd (double *const &parameter_pt)
 
bool does_pointer_correspond_to_problem_data (double *const &parameter_pt)
 
void set_consistent_pinned_values_for_continuation ()
 
- Protected Attributes inherited from oomph::Problem
Vector< Problem * > Copy_of_problem_pt
 
std::map< double *, bool > Calculate_dparameter_analytic
 
bool Calculate_hessian_products_analytic
 
LinearAlgebraDistribution * Dof_distribution_pt
 
Vector< double * > Dof_pt
 Vector of pointers to dofs. More...
 
DoubleVectorWithHaloEntries Element_count_per_dof
 
double Relaxation_factor
 
double Newton_solver_tolerance
 
unsigned Max_newton_iterations
 Maximum number of Newton iterations. More...
 
unsigned Nnewton_iter_taken
 
Vector< double > Max_res
 Maximum residuals at start and after each newton iteration. More...
 
double Max_residuals
 
bool Time_adaptive_newton_crash_on_solve_fail
 
bool Jacobian_reuse_is_enabled
 Is re-use of Jacobian in Newton iteration enabled? Default: false. More...
 
bool Jacobian_has_been_computed
 
bool Problem_is_nonlinear
 
bool Pause_at_end_of_sparse_assembly
 
bool Doc_time_in_distribute
 
unsigned Sparse_assembly_method
 
unsigned Sparse_assemble_with_arrays_initial_allocation
 
unsigned Sparse_assemble_with_arrays_allocation_increment
 
Vector< Vector< unsigned > > Sparse_assemble_with_arrays_previous_allocation
 
double Numerical_zero_for_sparse_assembly
 
double FD_step_used_in_get_hessian_vector_products
 
bool Mass_matrix_reuse_is_enabled
 
bool Mass_matrix_has_been_computed
 
bool Discontinuous_element_formulation
 
double Minimum_dt
 Minimum desired dt: if dt falls below this value, exit. More...
 
double Maximum_dt
 Maximum desired dt. More...
 
double DTSF_max_increase
 
double DTSF_min_decrease
 
double Minimum_dt_but_still_proceed
 
bool Scale_arc_length
 Boolean to control whether arc-length should be scaled. More...
 
double Desired_proportion_of_arc_length
 Proportion of the arc-length to taken by the parameter. More...
 
double Theta_squared
 
int Sign_of_jacobian
 Storage for the sign of the global Jacobian. More...
 
double Continuation_direction
 
double Parameter_derivative
 Storage for the derivative of the global parameter wrt arc-length. More...
 
double Parameter_current
 Storage for the present value of the global parameter. More...
 
bool Use_continuation_timestepper
 Boolean to control original or new storage of dof stuff. More...
 
unsigned Dof_derivative_offset
 
unsigned Dof_current_offset
 
Vector< double > Dof_derivative
 Storage for the derivative of the problem variables wrt arc-length. More...
 
Vector< double > Dof_current
 Storage for the present values of the variables. More...
 
double Ds_current
 Storage for the current step value. More...
 
unsigned Desired_newton_iterations_ds
 
double Minimum_ds
 Minimum desired value of arc-length. More...
 
bool Bifurcation_detection
 Boolean to control bifurcation detection via determinant of Jacobian. More...
 
bool Bisect_to_find_bifurcation
 Boolean to control wheter bisection is used to located bifurcation. More...
 
bool First_jacobian_sign_change
 Boolean to indicate whether a sign change has occured in the Jacobian. More...
 
bool Arc_length_step_taken
 Boolean to indicate whether an arc-length step has been taken. More...
 
bool Use_finite_differences_for_continuation_derivatives
 
OomphCommunicator * Communicator_pt
 The communicator for this problem. More...
 
bool Always_take_one_newton_step
 
double Timestep_reduction_factor_after_nonconvergence
 
bool Keep_temporal_error_below_tolerance
 
- Static Protected Attributes inherited from oomph::Problem
static ContinuationStorageScheme Continuation_time_stepper
 Storage for the single static continuation timestorage object. More...
 

Detailed Description

template<class FLUID_ELEMENT, class SOLID_ELEMENT>
class PressureWaveFSIProblem< FLUID_ELEMENT, SOLID_ELEMENT >

Problem class.

Member Enumeration Documentation

◆ anonymous enum

template<class FLUID_ELEMENT , class SOLID_ELEMENT >
anonymous enum
private

Enumeration of fluid boundaries.

Enumerator
Bottom_fluid_boundary 
FSI_fluid_boundary 
Top_fluid_boundary 
Centreline_fluid_boundary 
Internal_boundary_layer_fluid_boundary 
@ Bottom_fluid_boundary
Definition: linearised_poroelastic_fsi_pulsewave.cc:422
@ Top_fluid_boundary
Definition: linearised_poroelastic_fsi_pulsewave.cc:424
@ Internal_boundary_layer_fluid_boundary
Definition: linearised_poroelastic_fsi_pulsewave.cc:426
@ FSI_fluid_boundary
Definition: linearised_poroelastic_fsi_pulsewave.cc:423
@ Centreline_fluid_boundary
Definition: linearised_poroelastic_fsi_pulsewave.cc:425

◆ anonymous enum

template<class FLUID_ELEMENT , class SOLID_ELEMENT >
anonymous enum
private

Enumeration of poro-elastic boundaries.

Enumerator
Bottom_poro_boundary 
Outer_poro_boundary 
Top_poro_boundary 
FSI_poro_boundary 
Bottom_internal_poro_boundary 
Top_internal_poro_boundary 
@ FSI_poro_boundary
Definition: linearised_poroelastic_fsi_pulsewave.cc:433
@ Top_poro_boundary
Definition: linearised_poroelastic_fsi_pulsewave.cc:432
@ Bottom_internal_poro_boundary
Definition: linearised_poroelastic_fsi_pulsewave.cc:434
@ Outer_poro_boundary
Definition: linearised_poroelastic_fsi_pulsewave.cc:431
@ Top_internal_poro_boundary
Definition: linearised_poroelastic_fsi_pulsewave.cc:435
@ Bottom_poro_boundary
Definition: linearised_poroelastic_fsi_pulsewave.cc:430

Constructor & Destructor Documentation

◆ PressureWaveFSIProblem() [1/2]

template<class FLUID_ELEMENT , class POROELASTICITY_ELEMENT >
PressureWaveFSIProblem< FLUID_ELEMENT, POROELASTICITY_ELEMENT >::PressureWaveFSIProblem

Constructor.

318 {
319 
320  // Create timesteppers
325 
326  //Create the problem geometry - a hollow solid cylinder filled with fluid
327  //-----------------------------------------------------------------------
328 
329  //Temporary storage for coords in required format
330  Vector<Vector<double> > temp_coord(2,Vector<double>(2));
331 
332  //Fluid mesh
333  //----------
334 
335  //Vector for the vertices
336  Vector<Vector<double> > fluid_vertex_coords(5, Vector<double>(2));
337  fluid_vertex_coords[0][0]=0.0;
338  fluid_vertex_coords[0][1]=0.0;
339 
340  fluid_vertex_coords[1][0]=Global_Physical_Variables::Inner_radius;
341  fluid_vertex_coords[1][1]=0.0;
342 
343  fluid_vertex_coords[2][0]=Global_Physical_Variables::Inner_radius;
344  fluid_vertex_coords[2][1]=Global_Physical_Variables::Length;
345 
346  fluid_vertex_coords[3][0]=0.0;
347  fluid_vertex_coords[3][1]=Global_Physical_Variables::Length;
348 
349  fluid_vertex_coords[4][0]=0.0;
350  fluid_vertex_coords[4][1]=0.0;
351 
352 
353  //Loop over the vertices and create a polyline between each consecutive pair
354  Vector<TriangleMeshCurveSection*> fluid_outer_polyline_boundary_pt(4);
355  for(unsigned i=0;i<4;i++)
356  {
357  temp_coord[0][0]=fluid_vertex_coords[i][0];
358  temp_coord[0][1]=fluid_vertex_coords[i][1];
359  temp_coord[1][0]=fluid_vertex_coords[i+1][0];
360  temp_coord[1][1]=fluid_vertex_coords[i+1][1];
361  fluid_outer_polyline_boundary_pt[i] =
362  new TriangleMeshPolyLine(temp_coord,i);
363  }
364 
365  //Create the outer boundary closed curve
366  TriangleMeshClosedCurve* fluid_outer_boundary_pt =
367  new TriangleMeshClosedCurve(fluid_outer_polyline_boundary_pt);
368 
369  //Target element area for Triangle
370  double uniform_element_area = 0.002;
371 
372  // Use the TriangleMeshParameters object for gathering all
373  // the necessary arguments for the TriangleMesh object
374  TriangleMeshParameters fluid_triangle_mesh_parameters(
375  fluid_outer_boundary_pt);
376 
377  // Take the maximum element area
378  fluid_triangle_mesh_parameters.element_area() =
379  uniform_element_area;
380 
381  // Create the mesh
383  fluid_triangle_mesh_parameters, Fluid_time_stepper_pt);
384 
385  // Mesh as geom object representation of fluid mesh
387 
388  // Extract points
389  unsigned nplot_r=5;
390  unsigned nplot_z=unsigned(double(nplot_r)*Global_Physical_Variables::Length/
392  Regularly_spaced_plot_point.resize(nplot_r*nplot_z);
393  Vector<double> x(2);
394  Vector<double> s(2);
395  unsigned count=0;
396  for (unsigned ir=0;ir<nplot_r;ir++)
397  {
399  for (unsigned iz=0;iz<nplot_z;iz++)
400  {
402 
403  // Pointer to GeomObject that contains this point
404  GeomObject* geom_obj_pt=0;
405 
406  // Get it
407  Fluid_mesh_geom_obj_pt->locate_zeta(x,geom_obj_pt,s);
408 
409  // Store it
410  Regularly_spaced_plot_point[count].first=
411  dynamic_cast<FLUID_ELEMENT*>(geom_obj_pt);
412  Regularly_spaced_plot_point[count].second=s;
413 
414  count++;
415  }
416  }
417 
418 
419  //-----------------------------------------------------------------------------
420 
421  //Solid mesh
422  //----------
423 
424  //Vector for the vertices
425  Vector<Vector<double> > solid_vertex_coords(5, Vector<double>(2));
426  solid_vertex_coords[0][0]=Global_Physical_Variables::Inner_radius;
427  solid_vertex_coords[0][1]=0.0;
428 
429  solid_vertex_coords[1][0]=Global_Physical_Variables::Outer_radius;
430  solid_vertex_coords[1][1]=0.0;
431 
432  solid_vertex_coords[2][0]=Global_Physical_Variables::Outer_radius;
433  solid_vertex_coords[2][1]=Global_Physical_Variables::Length;
434 
435  solid_vertex_coords[3][0]=Global_Physical_Variables::Inner_radius;
436  solid_vertex_coords[3][1]=Global_Physical_Variables::Length;
437 
438  solid_vertex_coords[4][0]=Global_Physical_Variables::Inner_radius;
439  solid_vertex_coords[4][1]=0.0;
440 
441 
442  //Loop over the vertices and create a polyline between each consecutive pair
443  Vector<TriangleMeshCurveSection*> solid_outer_polyline_boundary_pt(4);
444  for(unsigned i=0;i<4;i++)
445  {
446  temp_coord[0][0]=solid_vertex_coords[i][0];
447  temp_coord[0][1]=solid_vertex_coords[i][1];
448  temp_coord[1][0]=solid_vertex_coords[i+1][0];
449  temp_coord[1][1]=solid_vertex_coords[i+1][1];
450  solid_outer_polyline_boundary_pt[i] =
451  new TriangleMeshPolyLine(temp_coord,i);
452  }
453 
454  //Create the outer boundary closed curve
455  TriangleMeshClosedCurve* solid_outer_boundary_pt =
456  new TriangleMeshClosedCurve(solid_outer_polyline_boundary_pt);
457 
458  //Target element area for Triangle
459  //uniform_element_area = 0.02;
460 
461  // Use the TriangleMeshParameters object for gathering all
462  // the necessary arguments for the TriangleMesh object
463  TriangleMeshParameters solid_triangle_mesh_parameters(
464  solid_outer_boundary_pt);
465 
466  // Take the maximum element area
467  solid_triangle_mesh_parameters.element_area() =
468  uniform_element_area;
469 
470  // Create the mesh
472  solid_triangle_mesh_parameters, Solid_time_stepper_pt);
473 
474  //-----------------------------------------------------------------------------
475 
476  // Create surface meshes
481 
482  // Set Id for Lagrange multiplier constraint
483  Lagrange_id=99;
484 
485  // Make surface meshes
488 
489  //-----------------------------------------------------------------------------
490 
491  //Loop over the elements in fluid mesh
492  unsigned n_element = Fluid_mesh_pt->nelement();
493  for(unsigned e=0;e<n_element;e++)
494  {
495  //Cast to the particular element type
496  FLUID_ELEMENT *el_pt = dynamic_cast<FLUID_ELEMENT*>
498 
499  //There is no need for ALE
500  el_pt->disable_ALE();
501 
502  //Set the Reynolds number for each element
503  el_pt->re_pt() = &Global_Physical_Variables::Re;
504 
505  //Set the product of Reynolds and Strouhal numbers
506  el_pt->re_st_pt() = &Global_Physical_Variables::Wo;
507 
508  //Pin u_theta at all nodes (no swirl velocity)
509  unsigned n_node = el_pt->nnode();
510  for(unsigned n=0;n<n_node;n++)
511  {
512  Node *nod_pt = el_pt->node_pt(n);
513  nod_pt->pin(2);
514  }
515  }
516 
517  // Loop over the elements in solid mesh
518  n_element = Solid_mesh_pt->nelement();
519  for(unsigned e=0;e<n_element;e++)
520  {
521  // Cast to a bulk element
522  SOLID_ELEMENT *el_pt = dynamic_cast<SOLID_ELEMENT*>
524 
525  // Set the pointer to Poisson's ratio
526  el_pt->nu_pt() = &Global_Physical_Variables::Nu;
527 
528  // Set the pointer to non-dim Young's modulus
529  el_pt->youngs_modulus_pt() = &Global_Physical_Variables::E;
530 
531  // Set the pointer to the Lambda parameter
532  el_pt->lambda_sq_pt() = &Global_Physical_Variables::Lambda_sq;
533 
534  // Loop over all nodes in the element and pin the theta displacement
535  unsigned n_node = el_pt->nnode();
536  for(unsigned i_node=0;i_node<n_node;i_node++)
537  {
538  Node *nod_pt = el_pt->node_pt(i_node);
539  nod_pt->pin(2);
540  }
541  }// end_loop_over_elements
542 
543 
544  //Set the fluid boundary conditions
545 
546  //Loop over the nodes on the fluid mesh boundary
547  unsigned n_boundary = Fluid_mesh_pt->nboundary();
548 
549  //Pin the boundary nodes
550  for(unsigned b=0;b<n_boundary;b++)
551  {
552  // Pin radial velocity at in and outflow (parallel flow)
553  // and on centreline (symm); leave FSI boundary (b=1) free
554  // [Doing the loop like this ensures that we pin nodes
555  // that are simultaneously on fsi boundary and in/outflow boundaries]
556  if (b!=1)
557  {
558  unsigned n_boundary_node = Fluid_mesh_pt->nboundary_node(b);
559  for(unsigned n=0;n<n_boundary_node;++n)
560  {
562  nod_pt->pin(0);
563 
564 
565  // If node is also on FSI boundary it must be on in/outflow:
566  // Pin axial velocity too
567  if (nod_pt->is_on_boundary(1))
568  {
569  nod_pt->pin(1);
570  }
571  }
572  }
573  // Completely pin the velocity on the FSI boundary
575  {
576  unsigned n_boundary_node = Fluid_mesh_pt->nboundary_node(b);
577  for(unsigned n=0;n<n_boundary_node;++n)
578  {
580  nod_pt->pin(0);
581  nod_pt->pin(1);
582  }
583  }
584  }
585 
586 
587  //Set the solid boundary conditions
588  n_boundary = Solid_mesh_pt->nboundary();
589 
590  //Pin the boundary nodes
591  for(unsigned b=0;b<n_boundary;b++)
592  {
593  unsigned n_boundary_node = Solid_mesh_pt->nboundary_node(b);
594  for(unsigned n=0;n<n_boundary_node;++n)
595  {
596  // Pin solid at in and outflow
597  if ((b==0)||(b==2))
598  {
601  }
602  }
603  }
604 
605 
606  // Pin theta Lagrange multipliers (no swirl) and radial and axial Lagrange
607  // multiplier for nodes on in and outflow boundaries (b=0 and 2)
608  // because velocity is already constrained there
609  unsigned nel=FSI_fluid_surface_mesh_pt->nelement();
610  for(unsigned e=0;e<nel;e++)
611  {
612  // Get face element
614  traction_element_pt=dynamic_cast<
617 
618  // Loop over nodes
619  unsigned n_node = traction_element_pt->nnode();
620  for(unsigned n=0;n<n_node;n++)
621  {
622  Node *nod_pt = traction_element_pt->node_pt(n);
623 
624  // Cast to a boundary node
625  BoundaryNodeBase *bnod_pt=dynamic_cast<BoundaryNodeBase*>(nod_pt);
626 
627  // Get the index of the first nodal value associated with
628  // this FaceElement
629  unsigned first_index=
631 
632  // Pin swirl component
633  nod_pt->pin(first_index+2);
634 
635  // Pin all Lagrange multipliers if we're pinning the fluid
636  // on the fsi boundary (for validation)
638  {
639  nod_pt->pin(first_index+0);
640  nod_pt->pin(first_index+1);
641  }
642 
643  // Pin radial and axial component if on in or outflow boundary
644  if (bnod_pt->is_on_boundary(0))
645  {
646  nod_pt->pin(first_index+0);
647  nod_pt->pin(first_index+1);
648  }
649  if (bnod_pt->is_on_boundary(2))
650  {
651  nod_pt->pin(first_index+0);
652  nod_pt->pin(first_index+1);
653  }
654  }
655  }
656 
657 
658  // Setup fluid structure interaction
659  setup_fsi();
660 
661  //Add submeshes and build global mesh
668 
670 
671  //Setup all the equation numbering and look-up schemes
673 
674 }
int i
Definition: BiCGSTAB_step_by_step.cpp:9
const unsigned n
Definition: CG3DPackingUnitTest.cpp:11
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Scalar * b
Definition: benchVecAdd.cpp:17
Mesh * FSI_fluid_surface_mesh_pt
FSI fluid surface mesh.
Definition: linearised_fsi_pulsewave.cc:292
void create_solid_traction_elements()
Create the solid traction elements.
Definition: linearised_fsi_pulsewave.cc:682
Mesh * Solid_surface_mesh_pt
Solid surface mesh on outside.
Definition: linearised_fsi_pulsewave.cc:283
Mesh * FSI_solid_surface_mesh_pt
Solid surface mesh at FSI interface.
Definition: linearised_fsi_pulsewave.cc:286
TriangleMesh< FLUID_ELEMENT > * Fluid_mesh_pt
Solid mesh.
Definition: linearised_fsi_pulsewave.cc:277
Mesh * Inflow_fluid_surface_mesh_pt
Inflow fluid surface mesh.
Definition: linearised_fsi_pulsewave.cc:289
TimeStepper * Fluid_time_stepper_pt
Pointer to fluid timestepper.
Definition: linearised_fsi_pulsewave.cc:298
Vector< std::pair< FLUID_ELEMENT *, Vector< double > > > Regularly_spaced_plot_point
Definition: linearised_fsi_pulsewave.cc:305
TimeStepper * Solid_time_stepper_pt
Pointer to wall timestepper.
Definition: linearised_fsi_pulsewave.cc:295
void setup_fsi()
setup fsi
Definition: linearised_fsi_pulsewave.cc:842
void create_fluid_traction_elements()
Create the fluid traction elements.
Definition: linearised_fsi_pulsewave.cc:765
unsigned Lagrange_id
Id for Lagrange multiplier constraint.
Definition: linearised_fsi_pulsewave.cc:308
TriangleMesh< SOLID_ELEMENT > * Solid_mesh_pt
Fluid mesh.
Definition: linearised_fsi_pulsewave.cc:280
MeshAsGeomObject * Fluid_mesh_geom_obj_pt
Mesh as geom object representation of fluid mesh.
Definition: linearised_fsi_pulsewave.cc:301
Definition: nodes.h:1996
unsigned index_of_first_value_assigned_by_face_element(const unsigned &face_id=0) const
Definition: nodes.h:2061
bool is_on_boundary() const
Test whether the node lies on a boundary.
Definition: nodes.h:2189
void pin(const unsigned &i)
Pin the i-th stored variable.
Definition: nodes.h:385
Node *& node_pt(const unsigned &n)
Return a pointer to the local node n.
Definition: elements.h:2175
unsigned nnode() const
Return the number of nodes.
Definition: elements.h:2210
Definition: geom_objects.h:101
Definition: axisym_fluid_traction_elements.h:619
Definition: mesh_as_geometric_object.h:93
void locate_zeta(const Vector< double > &zeta, GeomObject *&sub_geom_object_pt, Vector< double > &s, const bool &use_coordinate_as_initial_guess=false)
Definition: mesh_as_geometric_object.h:373
Definition: mesh.h:67
unsigned long nboundary_node(const unsigned &ibound) const
Return number of nodes on a particular boundary.
Definition: mesh.h:833
unsigned nboundary() const
Return number of boundaries.
Definition: mesh.h:827
GeneralisedElement *& element_pt(const unsigned long &e)
Return pointer to element e.
Definition: mesh.h:448
Node *& boundary_node_pt(const unsigned &b, const unsigned &n)
Return pointer to node n on boundary b.
Definition: mesh.h:493
unsigned long nelement() const
Return number of elements in the mesh.
Definition: mesh.h:590
Definition: timesteppers.h:1074
Definition: nodes.h:906
virtual bool is_on_boundary() const
Definition: nodes.h:1373
void add_time_stepper_pt(TimeStepper *const &time_stepper_pt)
Definition: problem.cc:1545
unsigned add_sub_mesh(Mesh *const &mesh_pt)
Definition: problem.h:1330
void build_global_mesh()
Definition: problem.cc:1493
unsigned long assign_eqn_numbers(const bool &assign_local_eqn_numbers=true)
Definition: problem.cc:1989
Base class defining a closed curve for the Triangle mesh generation.
Definition: unstructured_two_d_mesh_geometry_base.h:1339
Definition: triangle_mesh.template.h:94
Class defining a polyline for use in Triangle Mesh generation.
Definition: unstructured_two_d_mesh_geometry_base.h:868
Definition: oomph-lib/src/generic/Vector.h:58
#define FLUID_ELEMENT
RealScalar s
Definition: level1_cplx_impl.h:130
double E
Elastic modulus.
Definition: TwenteMeshGluing.cpp:68
double Wo
Definition: linearised_fsi_pulsewave.cc:57
double Nu
Poisson's ratio.
Definition: TwenteMeshGluing.cpp:71
double Lambda_sq
Pseudo-solid mass density.
Definition: pressure_driven_torus.cc:62
bool Pin_fluid_on_fsi
For validation only.
Definition: linearised_fsi_pulsewave.cc:47
double Outer_radius
Outer radius of tube.
Definition: linearised_fsi_pulsewave.cc:75
double Length
Length of the pipe.
Definition: pipe.cc:52
double Re
Reynolds number.
Definition: fibre.cc:55
double Inner_radius
Inner radius of tube.
Definition: linearised_fsi_pulsewave.cc:72
list x
Definition: plotDoE.py:28

References b, Global_Physical_Variables::E, e(), oomph::TriangleMeshParameters::element_area(), FLUID_ELEMENT, i, oomph::BoundaryNodeBase::index_of_first_value_assigned_by_face_element(), Global_Physical_Variables::Inner_radius, oomph::Node::is_on_boundary(), oomph::BoundaryNodeBase::is_on_boundary(), Global_Physical_Variables::Lambda_sq, Global_Physical_Variables::Length, oomph::GeomObject::locate_zeta(), n, oomph::FiniteElement::nnode(), oomph::FiniteElement::node_pt(), Global_Physical_Variables::Nu, Global_Physical_Variables::Outer_radius, oomph::Data::pin(), Global_Physical_Variables::Pin_fluid_on_fsi, Global_Physical_Variables::Re, s, Global_Physical_Variables::Wo, and plotDoE::x.

◆ PressureWaveFSIProblem() [2/2]

template<class FLUID_ELEMENT , class SOLID_ELEMENT >
PressureWaveFSIProblem< FLUID_ELEMENT, SOLID_ELEMENT >::PressureWaveFSIProblem ( )

Constructor.

Member Function Documentation

◆ actions_before_implicit_timestep() [1/2]

template<class FLUID_ELEMENT , class SOLID_ELEMENT >
void PressureWaveFSIProblem< FLUID_ELEMENT, SOLID_ELEMENT >::actions_before_implicit_timestep ( )
inlinevirtual

Update the problem specs before next timestep: Emtpy.

Reimplemented from oomph::Problem.

265 {}

◆ actions_before_implicit_timestep() [2/2]

template<class FLUID_ELEMENT , class SOLID_ELEMENT >
void PressureWaveFSIProblem< FLUID_ELEMENT, SOLID_ELEMENT >::actions_before_implicit_timestep ( )
inlinevirtual

Update the problem specs before next timestep. Increase inlet pressure

Reimplemented from oomph::Problem.

361  {
362  double time=time_pt()->time();
368 
369  oomph_info << "Updating inflow pressure for time " << time << " to "
371  }
Time *& time_pt()
Return a pointer to the global time object.
Definition: problem.h:1504
double & time()
Return the current value of continuous time.
Definition: problem.cc:11531
double & time()
Return the current value of the continuous time.
Definition: timesteppers.h:123
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 tanh(const bfloat16 &a)
Definition: BFloat16.h:639
double P_inlet_initial
Constant inlet pressure (for steady Poiseuille flow)
Definition: linearised_poroelastic_fsi_pulsewave.cc:141
double T_tanh
Parameter for tanh origin for pressure incrementation.
Definition: linearised_poroelastic_fsi_pulsewave.cc:152
double P_inlet_step
Definition: linearised_poroelastic_fsi_pulsewave.cc:149
double Alpha_tanh
Steepness parameter for tanh for pressure incrementation.
Definition: linearised_poroelastic_fsi_pulsewave.cc:155
double P_inlet_const
Constant inlet pressure (for steady Poiseuille flow)
Definition: linearised_fsi_pulsewave.cc:81
OomphInfo oomph_info
Definition: oomph_definitions.cc:319

References Global_Physical_Variables::Alpha_tanh, oomph::oomph_info, Global_Physical_Variables::P_inlet_const, Global_Physical_Variables::P_inlet_initial, Global_Physical_Variables::P_inlet_step, Global_Physical_Variables::T_tanh, and Eigen::bfloat16_impl::tanh().

◆ create_fluid_traction_elements() [1/2]

template<class FLUID_ELEMENT , class POROELASTICITY_ELEMENT >
void PressureWaveFSIProblem< FLUID_ELEMENT, POROELASTICITY_ELEMENT >::create_fluid_traction_elements

Create the fluid traction elements.

Create the traction elements to the appropriate boundaries of the fluid mesh.

766 {
767  // Inflow:
768  unsigned bound=2;
769 
770  // Now loop over bulk elements and create the face elements
771  unsigned nel=Fluid_mesh_pt->nboundary_element(bound);
772  for(unsigned e=0;e<nel;e++)
773  {
774  // Create the face element
779 
780  // Add to mesh
781  Inflow_fluid_surface_mesh_pt->add_element_pt(traction_element_pt);
782 
783  // Set the applied traction
784  traction_element_pt->traction_fct_pt() =
786  }
787 
788 
789  // FSI boundary:
790  bound=1;
791 
792  // Now loop over bulk elements and create the face elements
793  nel=Fluid_mesh_pt->nboundary_element(bound);
794  for(unsigned e=0;e<nel;e++)
795  {
796 
797 #ifdef DO_FSI
798 
799  // Create the face element
801  traction_element_pt = new
805 
806  // Add to mesh
807  FSI_fluid_surface_mesh_pt->add_element_pt(traction_element_pt);
808 
809  // Associate element with bulk boundary (to allow it to access
810  // the boundary coordinates in the bulk mesh)
811  traction_element_pt->set_boundary_number_in_bulk_mesh(bound);
812 
813  // Set Strouhal number
814  traction_element_pt->st_pt()=&Global_Physical_Variables::St;
815 
816 #else
817 
818  // Create the face element
823 
824  // Add to mesh
825  FSI_fluid_surface_mesh_pt->add_element_pt(traction_element_pt);
826 
827  // Set the applied traction
828  traction_element_pt->traction_fct_pt() =
829  &Global_Physical_Variables::fluid_fsi_boundary_traction;
830 
831 #endif
832 
833  }
834 
835 }
Definition: axisym_fluid_traction_elements.h:74
void(*&)(const double &time, const Vector< double > &x, const Vector< double > &n, Vector< double > &traction) traction_fct_pt()
Reference to the traction function pointer.
Definition: axisym_fluid_traction_elements.h:143
void set_boundary_number_in_bulk_mesh(const unsigned &b)
Set function for the boundary number in bulk mesh.
Definition: elements.h:4482
double *& st_pt()
Broken assignment operator.
Definition: axisym_fluid_traction_elements.h:647
int face_index_at_boundary(const unsigned &b, const unsigned &e) const
Definition: mesh.h:896
unsigned nboundary_element(const unsigned &b) const
Return number of finite elements that are adjacent to boundary b.
Definition: mesh.h:878
FiniteElement * boundary_element_pt(const unsigned &b, const unsigned &e) const
Return pointer to e-th finite element on boundary b.
Definition: mesh.h:840
void add_element_pt(GeneralisedElement *const &element_pt)
Add a (pointer to) an element to the mesh.
Definition: mesh.h:617
double St
Strouhal number.
Definition: elastic_two_layer_interface_axisym.cc:66
void fluid_inflow_boundary_traction(const double &time, const Vector< double > &x, const Vector< double > &n, Vector< double > &result)
Inflow traction applied to the fluid mesh.
Definition: linearised_fsi_pulsewave.cc:106

References e(), Global_Physical_Variables::fluid_inflow_boundary_traction(), oomph::FaceElement::set_boundary_number_in_bulk_mesh(), Global_Physical_Variables::St, oomph::LinearisedFSIAxisymmetricNStNoSlipBCElementElement< FLUID_BULK_ELEMENT, SOLID_BULK_ELEMENT >::st_pt(), and oomph::AxisymmetricNavierStokesTractionElement< ELEMENT >::traction_fct_pt.

◆ create_fluid_traction_elements() [2/2]

template<class FLUID_ELEMENT , class SOLID_ELEMENT >
void PressureWaveFSIProblem< FLUID_ELEMENT, SOLID_ELEMENT >::create_fluid_traction_elements ( )

Create the fluid traction elements.

◆ create_poro_face_elements()

template<class FLUID_ELEMENT , class POROELASTICITY_ELEMENT >
void PressureWaveFSIProblem< FLUID_ELEMENT, POROELASTICITY_ELEMENT >::create_poro_face_elements

Create the poroelasticity traction/pressure elements.

Create the traction/pressure elements to the appropriate boundaries of the poroelasticity mesh

1055 {
1056 
1057  // FSI boundary
1058  //-------------
1059  unsigned bound=FSI_poro_boundary;
1060 
1061  // Now loop over bulk elements and create the face elements
1062  unsigned nel=Poro_mesh_pt->nboundary_element(bound);
1063  for(unsigned n=0;n<nel;n++)
1064  {
1065  // Create the face element that applies fluid traction to poroelastic
1066  // solid
1068  <POROELASTICITY_ELEMENT,FLUID_ELEMENT>* face_element_pt=
1070  <POROELASTICITY_ELEMENT,FLUID_ELEMENT>
1073 
1074  // Add to mesh
1075  FSI_poro_surface_mesh_pt->add_element_pt(face_element_pt);
1076 
1077  // Set the FSI parameter
1078  face_element_pt->q_pt()=&Global_Physical_Variables::Q;
1079 
1080  // Associate element with bulk boundary (to allow it to access
1081  // the boundary coordinates in the bulk mesh)
1082  face_element_pt->set_boundary_number_in_bulk_mesh(bound);
1083  }
1084 
1085 } // end of create poro face elements
TriangleMesh< POROELASTICITY_ELEMENT > * Poro_mesh_pt
Poroelasticity mesh.
Definition: linearised_poroelastic_fsi_pulsewave.cc:385
Mesh * FSI_poro_surface_mesh_pt
Poroelasticity surface mesh at FSI interface.
Definition: linearised_poroelastic_fsi_pulsewave.cc:388
Definition: axisym_poroelasticity_face_elements.h:905
double Q
Ratio of scales.
Definition: elastic_bretherton.cc:131

References FLUID_ELEMENT, n, and Global_Physical_Variables::Q.

◆ create_solid_traction_elements()

template<class FLUID_ELEMENT , class SOLID_ELEMENT >
void PressureWaveFSIProblem< FLUID_ELEMENT, SOLID_ELEMENT >::create_solid_traction_elements

Create the solid traction elements.

Create the traction elements to the appropriate boundaries of the solid mesh.

683 {
684 
685  //Prescribed traction on fsi boundary (b=3)
686  unsigned bound=3;
687 
688  // Now loop over bulk elements and create the face elements
689  unsigned nel=Solid_mesh_pt->nboundary_element(bound);
690  for(unsigned n=0;n<nel;n++)
691  {
692 
693 #ifdef DO_FSI
694 
695  // Create the face element
697  traction_element_pt = new
701 
702  // Add to mesh
703  FSI_solid_surface_mesh_pt->add_element_pt(traction_element_pt);
704 
705  // Set the FSI parameter
706  traction_element_pt->q_pt() = &Global_Physical_Variables::Q;
707 
708  // Associate element with bulk boundary (to allow it to access
709  // the boundary coordinates in the bulk mesh)
710  traction_element_pt->set_boundary_number_in_bulk_mesh(bound);
711 
712 #else
713 
714  // Create the face element
716  traction_element_pt
720 
721  // Add to mesh
722  FSI_solid_surface_mesh_pt->add_element_pt(traction_element_pt);
723 
724  // Set the applied traction
725  traction_element_pt->traction_fct_pt() =
727 
728 #endif
729 
730  }
731 
732 
733  //Prescribed traction on outside wall (b=1)
734  bound=1;
735 
736  // Now loop over bulk elements and create the face elements
737  nel=Solid_mesh_pt->nboundary_element(bound);
738  for(unsigned n=0;n<nel;n++)
739  {
740 
741  // Create the face element
743  traction_element_pt
747 
748  // Add to mesh
749  Solid_surface_mesh_pt->add_element_pt(traction_element_pt);
750 
751  // Set the applied traction
752  traction_element_pt->traction_fct_pt() =
754  }
755 
756 
757 }
Definition: axisym_linear_elasticity_traction_elements.h:81
void(*&)(const double &time, const Vector< double > &x, const Vector< double > &n, Vector< double > &traction) traction_fct_pt()
Reference to the traction function pointer.
Definition: axisym_linear_elasticity_traction_elements.h:150
Definition: axisym_linear_elasticity_traction_elements.h:497
double *& q_pt()
Definition: axisym_linear_elasticity_traction_elements.h:580
void validation_solid_fsi_boundary_traction(const double &time, const Vector< double > &x, const Vector< double > &n, Vector< double > &result)
Traction applied to the solid mesh at fsi interface (for validation only)
Definition: linearised_fsi_pulsewave.cc:130
void outside_solid_boundary_traction(const double &time, const Vector< double > &x, const Vector< double > &n, Vector< double > &result)
Traction applied to the outside of the solid mesh.
Definition: linearised_fsi_pulsewave.cc:95

References n, Global_Physical_Variables::outside_solid_boundary_traction(), Global_Physical_Variables::Q, oomph::FSIAxisymmetricLinearElasticityTractionElement< ELASTICITY_BULK_ELEMENT, NAVIER_STOKES_BULK_ELEMENT >::q_pt(), oomph::FaceElement::set_boundary_number_in_bulk_mesh(), oomph::AxisymmetricLinearElasticityTractionElement< ELEMENT >::traction_fct_pt, and Global_Physical_Variables::validation_solid_fsi_boundary_traction().

◆ doc_solution() [1/2]

template<class FLUID_ELEMENT , class POROELASTICITY_ELEMENT >
void PressureWaveFSIProblem< FLUID_ELEMENT, POROELASTICITY_ELEMENT >::doc_solution ( DocInfo &  doc_info)

Doc solution.

869 {
870 
871  //Define a string that we can set to be the name of the output file
872  char filename[100];
873 
874  //Define an output filestream
875  ofstream file;
876 
877  // Fluid
878  sprintf(filename,"%s/soln-fluid%i.dat",
879  doc_info.directory().c_str(),
880  doc_info.number());
881  file.open(filename);
882  Fluid_mesh_pt->output(file,5);
883  file.close();
884 
885  // Fluid traction
886  sprintf(filename,"%s/fluid_traction%i.dat",
887  doc_info.directory().c_str(),
888  doc_info.number());
889  file.open(filename);
891  file.close();
892 
893 
894  // Fluid traction
895  sprintf(filename,"%s/fluid_fsi_traction%i.dat",
896  doc_info.directory().c_str(),
897  doc_info.number());
898  file.open(filename);
900  file.close();
901 
902 
903  // // Fluid traction
904  // sprintf(filename,"%s/tmp_fluid_fsi_traction%i.dat",
905  // doc_info.directory().c_str(),
906  // doc_info.number());
907  // file.open(filename);
908  // tmp_FSI_fluid_surface_mesh_pt->output(file,5);
909  // file.close();
910 
911  // Solid
912  sprintf(filename,"%s/soln-solid%i.dat",
913  doc_info.directory().c_str(),
914  doc_info.number());
915  file.open(filename);
916  Solid_mesh_pt->output(file,5);
917  file.close();
918 
919 
920  // Solid traction
921  sprintf(filename,"%s/solid_traction%i.dat",
922  doc_info.directory().c_str(),
923  doc_info.number());
924  file.open(filename);
926  file.close();
927 
928 
929  // Solid traction
930  sprintf(filename,"%s/outside_solid_traction%i.dat",
931  doc_info.directory().c_str(),
932  doc_info.number());
933  file.open(filename);
934  Solid_surface_mesh_pt->output(file,5);
935  file.close();
936 
937 
938  // Fluid at regularly spaced points
939  sprintf(filename,"%s/regular_fluid%i.dat",
940  doc_info.directory().c_str(),
941  doc_info.number());
942  file.open(filename);
943  unsigned npts=Regularly_spaced_plot_point.size();
944  Vector<double> x(2);
945  Vector<double> s(2);
946  Vector<double> veloc(3);
947  for (unsigned i=0;i<npts;i++)
948  {
949  // Pointer to element
951 
952  // Coordinates in it
954 
955  // Get coords
956  el_pt->interpolated_x(s,x);
957 
958  // Get velocity
959  el_pt->interpolated_u_axi_nst(s,veloc);
960 
961  file << x[0] << " "
962  << x[1] << " "
963  << veloc[0] << " "
964  << veloc[1] << " "
965  << veloc[2] << " "
966  << std::endl;
967  }
968  file.close();
969 
970 
971  // Output "exact" pulse wave solution
972  //-----------------------------------
973  sprintf(filename,"%s/pulse_wave%i.dat",
974  doc_info.directory().c_str(),
975  doc_info.number());
976  file.open(filename);
977  Fluid_mesh_pt->output_fct(file,5,time_pt()->time(),
979  file.close();
980 
981  // Bump up counter
982  doc_info.number()++;
983 
984 }
std::string directory() const
Output directory.
Definition: oomph_utilities.h:524
unsigned & number()
Number used (e.g.) for labeling output files.
Definition: oomph_utilities.h:554
void output_fct(std::ostream &outfile, const unsigned &n_plot, FiniteElement::SteadyExactSolutionFctPt)
Output a given Vector function at f(n_plot) points in each element.
Definition: mesh.cc:2199
void output(std::ostream &outfile)
Output for all elements.
Definition: mesh.cc:2027
void pulse_wave_solution(const double &time, const Vector< double > &x, Vector< double > &soln)
"Exact" solution for propagating pulse wave
Definition: linearised_fsi_pulsewave.cc:169
string filename
Definition: MergeRestartFiles.py:39

References oomph::DocInfo::directory(), MergeRestartFiles::filename, FLUID_ELEMENT, i, oomph::DocInfo::number(), Global_Physical_Variables::pulse_wave_solution(), s, and plotDoE::x.

◆ doc_solution() [2/2]

template<class FLUID_ELEMENT , class SOLID_ELEMENT >
void PressureWaveFSIProblem< FLUID_ELEMENT, SOLID_ELEMENT >::doc_solution ( DocInfo &  doc_info)

Doc solution.

◆ setup_fsi() [1/2]

template<class FLUID_ELEMENT , class POROELASTICITY_ELEMENT >
void PressureWaveFSIProblem< FLUID_ELEMENT, POROELASTICITY_ELEMENT >::setup_fsi
private

setup fsi

Setup interaction between two fields.

843 {
844  // Setup fluid traction on FSI wall elements
845  //------------------------------------------
846  unsigned boundary_in_fluid_mesh=1;
848  <FLUID_ELEMENT,2>
849  (this,boundary_in_fluid_mesh,Fluid_mesh_pt,FSI_solid_surface_mesh_pt);
850 
851  // Setup no slip bc for axisym Navier Stokes from adjacent axisym
852  //---------------------------------------------------------------
853  // elasticity elements
854  //-------------------
855  unsigned boundary_in_solid_mesh=3;
857  <SOLID_ELEMENT,2>(
858  this,boundary_in_solid_mesh,Solid_mesh_pt,FSI_fluid_surface_mesh_pt);
859 
860 }
void setup_bulk_elements_adjacent_to_face_mesh(Problem *problem_pt, Vector< unsigned > &boundary_in_bulk_mesh, Mesh *const &bulk_mesh_pt, Vector< Mesh * > &face_mesh_pt, const unsigned &interaction=0)
/ Templated helper functions for multi-domain methods using locate_zeta
Definition: multi_domain.template.cc:72

References FLUID_ELEMENT, and oomph::Multi_domain_functions::setup_bulk_elements_adjacent_to_face_mesh().

◆ setup_fsi() [2/2]

template<class FLUID_ELEMENT , class SOLID_ELEMENT >
void PressureWaveFSIProblem< FLUID_ELEMENT, SOLID_ELEMENT >::setup_fsi ( )
private

Setup fsi.

Member Data Documentation

◆ Fluid_mesh_geom_obj_pt

template<class FLUID_ELEMENT , class SOLID_ELEMENT >
MeshAsGeomObject * PressureWaveFSIProblem< FLUID_ELEMENT, SOLID_ELEMENT >::Fluid_mesh_geom_obj_pt
private

Mesh as geom object representation of fluid mesh.

◆ Fluid_mesh_pt

template<class FLUID_ELEMENT , class SOLID_ELEMENT >
TriangleMesh< FLUID_ELEMENT > * PressureWaveFSIProblem< FLUID_ELEMENT, SOLID_ELEMENT >::Fluid_mesh_pt
private

Solid mesh.

Fluid mesh.

◆ Fluid_regularly_spaced_plot_point

template<class FLUID_ELEMENT , class SOLID_ELEMENT >
Vector<std::pair<FLUID_ELEMENT*,Vector<double> > > PressureWaveFSIProblem< FLUID_ELEMENT, SOLID_ELEMENT >::Fluid_regularly_spaced_plot_point
private

Vector of pairs containing pointers to elements and local coordinates within them for regularly spaced plot points

◆ Fluid_time_stepper_pt

template<class FLUID_ELEMENT , class SOLID_ELEMENT >
TimeStepper * PressureWaveFSIProblem< FLUID_ELEMENT, SOLID_ELEMENT >::Fluid_time_stepper_pt
private

Pointer to fluid timestepper.

Pointer to the fluid timestepper.

◆ FSI_fluid_surface_mesh_pt

template<class FLUID_ELEMENT , class SOLID_ELEMENT >
Mesh * PressureWaveFSIProblem< FLUID_ELEMENT, SOLID_ELEMENT >::FSI_fluid_surface_mesh_pt
private

FSI fluid surface mesh.

◆ FSI_poro_surface_mesh_pt

template<class FLUID_ELEMENT , class SOLID_ELEMENT >
Mesh* PressureWaveFSIProblem< FLUID_ELEMENT, SOLID_ELEMENT >::FSI_poro_surface_mesh_pt
private

Poroelasticity surface mesh at FSI interface.

◆ FSI_solid_surface_mesh_pt

template<class FLUID_ELEMENT , class SOLID_ELEMENT >
Mesh* PressureWaveFSIProblem< FLUID_ELEMENT, SOLID_ELEMENT >::FSI_solid_surface_mesh_pt
private

Solid surface mesh at FSI interface.

◆ Inflow_fluid_surface_mesh_pt

template<class FLUID_ELEMENT , class SOLID_ELEMENT >
Mesh * PressureWaveFSIProblem< FLUID_ELEMENT, SOLID_ELEMENT >::Inflow_fluid_surface_mesh_pt
private

Inflow fluid surface mesh.

◆ Lagrange_id

template<class FLUID_ELEMENT , class SOLID_ELEMENT >
unsigned PressureWaveFSIProblem< FLUID_ELEMENT, SOLID_ELEMENT >::Lagrange_id
private

Id for Lagrange multiplier constraint.

Id for Lagrange multiplier that enforces (no-)slip on fluid.

◆ Poro_mesh_pt

template<class FLUID_ELEMENT , class SOLID_ELEMENT >
TriangleMesh<POROELASTICITY_ELEMENT>* PressureWaveFSIProblem< FLUID_ELEMENT, SOLID_ELEMENT >::Poro_mesh_pt
private

Poroelasticity mesh.

◆ Poro_time_stepper_pt

template<class FLUID_ELEMENT , class SOLID_ELEMENT >
TimeStepper* PressureWaveFSIProblem< FLUID_ELEMENT, SOLID_ELEMENT >::Poro_time_stepper_pt
private

Pointer to the poroelasticity timestepper.

◆ Regularly_spaced_plot_point

template<class FLUID_ELEMENT , class SOLID_ELEMENT >
Vector<std::pair<FLUID_ELEMENT*,Vector<double> > > PressureWaveFSIProblem< FLUID_ELEMENT, SOLID_ELEMENT >::Regularly_spaced_plot_point
private

Vector of pairs containing pointers to elements and local coordinates within them for regularly spaced plot points

◆ Solid_mesh_geom_obj_pt

template<class FLUID_ELEMENT , class SOLID_ELEMENT >
MeshAsGeomObject* PressureWaveFSIProblem< FLUID_ELEMENT, SOLID_ELEMENT >::Solid_mesh_geom_obj_pt
private

Mesh as geom object representation of solid mesh.

◆ Solid_mesh_pt

template<class FLUID_ELEMENT , class SOLID_ELEMENT >
TriangleMesh<SOLID_ELEMENT>* PressureWaveFSIProblem< FLUID_ELEMENT, SOLID_ELEMENT >::Solid_mesh_pt
private

Fluid mesh.

◆ Solid_regularly_spaced_plot_point

template<class FLUID_ELEMENT , class SOLID_ELEMENT >
Vector<std::pair<POROELASTICITY_ELEMENT*,Vector<double> > > PressureWaveFSIProblem< FLUID_ELEMENT, SOLID_ELEMENT >::Solid_regularly_spaced_plot_point
private

Vector of pairs containing pointers to elements and local coordinates within them for regularly spaced plot points

◆ Solid_surface_mesh_pt

template<class FLUID_ELEMENT , class SOLID_ELEMENT >
Mesh* PressureWaveFSIProblem< FLUID_ELEMENT, SOLID_ELEMENT >::Solid_surface_mesh_pt
private

Solid surface mesh on outside.

◆ Solid_time_stepper_pt

template<class FLUID_ELEMENT , class SOLID_ELEMENT >
TimeStepper* PressureWaveFSIProblem< FLUID_ELEMENT, SOLID_ELEMENT >::Solid_time_stepper_pt
private

Pointer to wall timestepper.


The documentation for this class was generated from the following files: