libMesh
Functions
femparameters.C File Reference

Go to the source code of this file.

Functions

AutoPtr< FunctionBase< Number > > new_function_base (const std::string &func_type, const std::string &func_value)
 

Function Documentation

AutoPtr<FunctionBase<Number> > new_function_base ( const std::string &  func_type,
const std::string &  func_value 
)

Definition at line 134 of file femparameters.C.

References FEMParameters::absolute_residual_tolerance, FEMParameters::analytic_jacobians, FEMParameters::coarsegridx, FEMParameters::coarsegridy, FEMParameters::coarsegridz, FEMParameters::coarsen_fraction, FEMParameters::coarsen_threshold, FEMParameters::coarserefinements, libMesh::ParallelObject::comm(), FEMParameters::deltat, FEMParameters::deltat_reductions, FEMParameters::dimension, FEMParameters::dirichlet_condition_variables, FEMParameters::dirichlet_conditions, libMesh::DISCRETE_L2, FEMParameters::domain_edge_height, FEMParameters::domain_edge_length, FEMParameters::domain_edge_width, FEMParameters::domain_xmin, FEMParameters::domain_ymin, FEMParameters::domain_zmin, FEMParameters::domainfile, FEMParameters::domaintype, FEMParameters::elementorder, FEMParameters::elementtype, FEMParameters::end_time, libMesh::err, FEMParameters::extra_quadrature_order, FEMParameters::extrarefinements, FEMParameters::fe_family, FEMParameters::fe_order, FEMParameters::global_tolerance, libMesh::H1, libMesh::H2, FEMParameters::indicator_type, FEMParameters::initial_adaptivesteps, FEMParameters::initial_conditions, FEMParameters::initial_extra_quadrature, FEMParameters::initial_linear_tolerance, FEMParameters::initial_sobolev_order, FEMParameters::initial_timestep, libMesh::L2, FEMParameters::linear_tolerance_multiplier, std::max(), FEMParameters::max_adaptivesteps, FEMParameters::max_linear_iterations, FEMParameters::max_nonlinear_iterations, FEMParameters::mesh_redistribute_func, FEMParameters::min_step_length, FEMParameters::minimum_linear_tolerance, FEMParameters::n_timesteps, libMesh::Quality::name(), FEMParameters::nelem_target, FEMParameters::neumann_condition_variables, FEMParameters::neumann_conditions, new_function_base(), FEMParameters::numerical_jacobian_h, FEMParameters::other_boundary_functions, FEMParameters::other_interior_functions, libMesh::out, FEMParameters::output_bz2, FEMParameters::output_exodus, FEMParameters::output_gmv, FEMParameters::output_gz, FEMParameters::output_nemesis, FEMParameters::output_tecplot, FEMParameters::output_xda, FEMParameters::output_xdr, FEMParameters::patch_reuse, FEMParameters::periodic_boundaries, FEMParameters::print_element_jacobians, FEMParameters::print_element_residuals, FEMParameters::print_element_solutions, FEMParameters::print_jacobian_norms, FEMParameters::print_jacobians, FEMParameters::print_residual_norms, FEMParameters::print_residuals, FEMParameters::print_solution_norms, FEMParameters::print_solutions, FEMParameters::read(), libMesh::Real, FEMParameters::refine_fraction, FEMParameters::refine_uniformly, FEMParameters::relative_residual_tolerance, FEMParameters::relative_step_tolerance, FEMParameters::require_residual_reduction, FEMParameters::reuse_preconditioner, FEMParameters::run_postprocess, FEMParameters::run_simulation, FEMParameters::sobolev_order, FEMParameters::solver_quiet, FEMParameters::solver_verbose, FEMParameters::steadystate_tolerance, FEMParameters::system_config_file, FEMParameters::system_types, FEMParameters::time_solver_quiet, FEMParameters::timesolver_core, FEMParameters::timesolver_maxgrowth, FEMParameters::timesolver_norm, FEMParameters::timesolver_theta, FEMParameters::timesolver_tolerance, FEMParameters::timesolver_upper_tolerance, FEMParameters::use_petsc_snes, FEMParameters::verify_analytic_jacobians, FEMParameters::write_exodus_error, FEMParameters::write_gmv_error, FEMParameters::write_interval, and FEMParameters::write_tecplot_error.

136 {
137  if (func_type == "parsed")
139  (new ParsedFunction<Number>(func_value));
140  else if (func_type == "zero")
142  (new ZeroFunction<Number>);
143  else
144  libmesh_not_implemented();
145 
147 }
ConstFunction that simply returns 0.
Definition: zero_function.h:35
A Function generated (via FParser) by parsing a mathematical expression.
A simple smart pointer providing strict ownership semantics.
Definition: auto_ptr.h:210