• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Open-Sn / opensn / 16766938693

05 Aug 2025 03:26PM UTC coverage: 73.386% (+0.1%) from 73.282%
16766938693

push

github

web-flow
Merge pull request #693 from andrsd/move-bnds

Moving sweep boundaries into `DiscreteOrdinatesProblem`

247 of 311 new or added lines in 19 files covered. (79.42%)

625 existing lines in 49 files now uncovered.

18320 of 24964 relevant lines covered (73.39%)

43106214.05 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

66.67
/framework/field_functions/field_function.h
1
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
2
// SPDX-License-Identifier: MIT
3

4
#pragma once
5

6
#include "framework/parameters/input_parameters.h"
7
#include "framework/math/unknown_manager/unknown_manager.h"
8
#include "framework/mesh/mesh.h"
9

10
namespace opensn
11
{
12
class Cell;
13

14
class FieldFunction
15
{
16
public:
17
  static InputParameters GetInputParameters();
18
  explicit FieldFunction(const InputParameters& params);
19

20
  FieldFunction(std::string name, Unknown unknown);
21

22
  virtual ~FieldFunction() = default;
72,068✔
23

24
  /// Returns the text name of the field function.
25
  const std::string& GetName() const { return name_; }
4,381✔
26

27
  /// Returns a reference to the unknown structure.
28
  const Unknown& GetUnknown() const { return unknown_; }
4,286✔
29

30
  /// Returns a reference to the unknown manager that can be with spatial discretizations.
31
  const UnknownManager& GetUnknownManager() const { return unknown_manager_; }
80,958✔
32

33
  /// Evaluate the field function on a given cell, at a given position, for the given component.
UNCOV
34
  virtual double Evaluate(const Cell& cell, const Vector3& position, int component) const
×
35
  {
UNCOV
36
    return 0.0;
×
37
  }
38

39
protected:
40
  std::string name_;
41
  Unknown unknown_;
42
  UnknownManager unknown_manager_;
43
};
44

45
} // namespace opensn
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc