KADATH
domain_shell_log_ope.cpp
1 /*
2  Copyright 2017 Philippe Grandclement
3 
4  This file is part of Kadath.
5 
6  Kadath is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  Kadath is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with Kadath. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 #include "array.hpp"
21 #include "spheric.hpp"
22 #include "val_domain.hpp"
23 namespace Kadath {
24 int mult_x_1d (int, Array<double>&) ;
25 
27  Val_domain res (so * get_radius()) ;
28  res.base = so.base ;
29  return res ;
30 }
31 
33  Val_domain res (so / get_radius()) ;
34  res.base = so.base ;
35  return (res) ;
36 }
37 
39  return (so.der_var(1)/alpha/get_radius()) ;
40 }}
virtual Val_domain div_r(const Val_domain &) const
Division by .
virtual Val_domain mult_r(const Val_domain &) const
Multiplication by .
virtual Val_domain der_r(const Val_domain &) const
Compute the radial derivative of a scalar field.
double alpha
Relates the numerical to the physical radii.
Definition: spheric.hpp:558
Val_domain const & get_radius() const
Returns the generalized radius.
Definition: space.hpp:1465
Class for storing the basis of decompositions of a field and its values on both the configuration and...
Definition: val_domain.hpp:69
Base_spectral base
Spectral basis of the field.
Definition: val_domain.hpp:72
Val_domain der_var(int i) const
Computes the derivative with respect to a numerical coordinate.
Definition: val_domain.cpp:670