perf(jacobian-action): major updates to jacobian action application by removing redudant quadrature work. ~5x increase in speed

This commit is contained in:
2026-09-02 17:01:50 -04:00
parent 85500fef3b
commit 25510008dd
74 changed files with 8967 additions and 814 deletions

View File

@@ -15,7 +15,7 @@ export namespace mean_field::surface {
class CompiledPressureSurfaceConstraint final {
public:
using PhysicalCondition = ConstantPressureSurface;
using PhysicalQuantity = eos::quantity::Pressure;
using PhysicalQuantity = dimensions::quantity::Pressure;
using CarrierQuantity = typename Formulation::CarrierQuantity;
using CarrierField = typename Formulation::CarrierField;
using Relation = SelectedRelation;
@@ -32,7 +32,7 @@ export namespace mean_field::surface {
) {
}
[[nodiscard]] eos::PressureValue targetPressure() const noexcept {
[[nodiscard]] dimensions::PressureValue targetPressure() const noexcept {
return m_condition.targetPressure();
}

View File

@@ -7,7 +7,7 @@ module;
export module mean_field:surface.constant;
export import :eos.quantities;
export import :dimensions.quantities;
export namespace mean_field::surface {
struct PressureSurfaceDescriptor final {
@@ -22,8 +22,15 @@ export namespace mean_field::surface {
*/
class ConstantPressureSurface final {
public:
using PhysicalQuantity = eos::quantity::Pressure;
using TargetValue = eos::PressureValue;
struct Parameters final {
dimensions::PressureValue Psurf;
};
using PhysicalQuantity = dimensions::quantity::Pressure;
using TargetValue = dimensions::PressureValue;
explicit ConstantPressureSurface(const Parameters parameters) : ConstantPressureSurface(parameters.Psurf) {
}
explicit ConstantPressureSurface(const TargetValue targetPressure) : m_targetPressure(targetPressure) {
if (!std::isfinite(targetPressure.value())) {