OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
dummy_coupling_adapter.cpp
Go to the documentation of this file.
1//Copyright> OpenRadioss
2//Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3//Copyright>
4//Copyright> This program is free software: you can redistribute it and/or modify
5//Copyright> it under the terms of the GNU Affero General Public License as published by
6//Copyright> the Free Software Foundation, either version 3 of the License, or
7//Copyright> (at your option) any later version.
8//Copyright>
9//Copyright> This program is distributed in the hope that it will be useful,
10//Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11//Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12//Copyright> GNU Affero General Public License for more details.
13//Copyright>
14//Copyright> You should have received a copy of the GNU Affero General Public License
15//Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16//Copyright>
17//Copyright>
18//Copyright> Commercial Alternative: Altair Radioss Software
19//Copyright>
20//Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21//Copyright> software under a commercial license. Contact Altair to discuss further if the
22//Copyright> commercial version may interest you: https://www.altair.com/radioss/.
24#include <iostream>
25
26bool DummyCouplingAdapter::configure(const std::string& configFile) {
27// std::cout << "No coupling library available - coupling disabled" << std::endl;
28 return false;
29}
30
31void DummyCouplingAdapter::setNodes(const std::vector<int>& nodeIds) {
32 // Do nothing
33}
34
35bool DummyCouplingAdapter::initialize(const double* coordinates, int totalNodes, int mpiRank, int mpiSize) {
36// std::cout << "Dummy coupling adapter initialized (no actual coupling)" << std::endl;
37 return true;
38}
39
40void DummyCouplingAdapter::writeData(const double* values, int totalNodes, double dt, int dataType) {
41 // Do nothing
42}
43
44void DummyCouplingAdapter::readData(double* values, int totalNodes, double dt, int dataType) {
45 // Do nothing
46}
47
48
50 // Do nothing - dt remains unchanged
51}
52
54 return false; // No coupling, so never ongoing
55}
56
58 return false;
59}
60
62 return false;
63}
64
66 // Do nothing
67}
68
70 return false;
71}
72
74 return 1e30; // No time step limit
75}
76
bool requiresReadingCheckpoint() const override
bool isActive() const override
void setNodes(const std::vector< int > &nodeIds) override
void writeData(const double *values, int totalNodes, double dt, int dataType) override
bool initialize(const double *coordinates, int totalNodes, int mpiRank, int mpiSize) override
void readData(double *values, int totalNodes, double dt, int dataType) override
bool configure(const std::string &configFile) override
int getNumberOfCouplingNodes() const override
double getMaxTimeStepSize() const override
void advance(double &dt) override
bool isCouplingOngoing() const override
bool requiresWritingCheckpoint() const override