44 source_term_with_convection(
false),
45 blend_in_source_term(
false),
46 fluid_to_acoustic_coupling_strategy(FluidToAcousticCouplingStrategy::Undefined)
53 AssertThrow(density >= 0.0, dealii::ExcMessage(
"Density has to be set."));
55 AssertThrow(fluid_to_acoustic_coupling_strategy != FluidToAcousticCouplingStrategy::Undefined,
56 dealii::ExcMessage(
"Coupling strategy has to be set."));
60 print(dealii::ConditionalOStream
const & pcout, std::string
const & name)
const
62 pcout << std::endl << name << std::endl << std::endl;
63 print_parameter(pcout,
"Density", density);
64 print_parameter(pcout,
"Source term has convective part", source_term_with_convection);
65 print_parameter(pcout,
"Blend in source term", blend_in_source_term);
66 print_parameter(pcout,
"Fluid to acoustic coupling", fluid_to_acoustic_coupling_strategy);
70 add_parameters(dealii::ParameterHandler & prm, std::string
const & subsection_name)
72 prm.enter_subsection(subsection_name);
75 "Density", density,
"Mean density of underlying fluid.", dealii::Patterns::Double(),
true);
77 prm.add_parameter(
"SourceTermWithConvection",
78 source_term_with_convection,
79 "Source term includes convective part.",
80 dealii::Patterns::Bool(),
83 prm.add_parameter(
"BlendInSourceTerm",
85 "Blend in the aeroacoustic source term.",
86 dealii::Patterns::Bool(),
89 prm.add_parameter(
"FluidToAcousticCouplingStrategy",
90 fluid_to_acoustic_coupling_strategy,
91 "Volume coupling strategy from the fluid to the acoustic field.",
92 Patterns::Enum<FluidToAcousticCouplingStrategy>(),
95 prm.leave_subsection();
104 bool source_term_with_convection;
107 bool blend_in_source_term;
110 FluidToAcousticCouplingStrategy fluid_to_acoustic_coupling_strategy;