59 source_term_with_convection(
false),
60 blend_in_source_term(
false),
61 fluid_to_acoustic_coupling_strategy(FluidToAcousticCouplingStrategy::Undefined),
62 acoustic_source_term_computation(AcousticSourceTermComputation::Undefined)
69 AssertThrow(density >= 0.0, dealii::ExcMessage(
"Density has to be set."));
71 AssertThrow(fluid_to_acoustic_coupling_strategy != FluidToAcousticCouplingStrategy::Undefined,
72 dealii::ExcMessage(
"Coupling strategy has to be set."));
74 AssertThrow(acoustic_source_term_computation != AcousticSourceTermComputation::Undefined,
75 dealii::ExcMessage(
"Source term computation has to be set."));
79 print(dealii::ConditionalOStream
const & pcout, std::string
const & name)
const
81 pcout << std::endl << name << std::endl << std::endl;
82 print_parameter(pcout,
"Density", density);
83 print_parameter(pcout,
"Source term has convective part", source_term_with_convection);
84 print_parameter(pcout,
"Blend in source term", blend_in_source_term);
85 print_parameter(pcout,
"Fluid to acoustic coupling", fluid_to_acoustic_coupling_strategy);
86 print_parameter(pcout,
"Acoustic source term compuation", acoustic_source_term_computation);
90 add_parameters(dealii::ParameterHandler & prm, std::string
const & subsection_name)
92 prm.enter_subsection(subsection_name);
95 "Density", density,
"Mean density of underlying fluid.", dealii::Patterns::Double(),
true);
97 prm.add_parameter(
"SourceTermWithConvection",
98 source_term_with_convection,
99 "Source term includes convective part.",
100 dealii::Patterns::Bool(),
103 prm.add_parameter(
"BlendInSourceTerm",
104 blend_in_source_term,
105 "Blend in the aeroacoustic source term.",
106 dealii::Patterns::Bool(),
109 prm.add_parameter(
"FluidToAcousticCouplingStrategy",
110 fluid_to_acoustic_coupling_strategy,
111 "Volume coupling strategy from the fluid to the acoustic field.",
112 Patterns::Enum<FluidToAcousticCouplingStrategy>(),
115 prm.add_parameter(
"AcousticSourceTermComputation",
116 acoustic_source_term_computation,
117 "How to compute the acustic source term.",
118 Patterns::Enum<AcousticSourceTermComputation>(),
121 prm.leave_subsection();
130 bool source_term_with_convection;
133 bool blend_in_source_term;
136 FluidToAcousticCouplingStrategy fluid_to_acoustic_coupling_strategy;
139 AcousticSourceTermComputation acoustic_source_term_computation;