File: dummyAnsys.cxx

package info (click to toggle)
persalys 19.1%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 46,900 kB
  • sloc: xml: 97,263; cpp: 61,701; python: 4,109; sh: 397; makefile: 84
file content (21 lines) | stat: -rw-r--r-- 747 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//                                               -*- C++ -*-
// basic file operations
#include <iostream>
#include <fstream>
using namespace std;

int main ()
{
  ofstream myfile;
  myfile.open ("output0.csv", std::ios::trunc);
  myfile << "# \n";
  myfile << "# 12/16/2021 15:18:38\n";
  myfile << "# The parameters defined in the project are:\n";
  myfile << "# ,P1 - L,P2 - b [m],P3 - h [m],P6 - Module de Young [Pa],P7 - Force Composante Y [N],P5 - Déplacement directionnel Maximum [m]\n";
  myfile << "#\n";
  myfile << "# The following header line defines the name of the columns by reference to the parameters.\n";
  myfile << "Name,P1,P2,P3,P6,P7,P5\n";
  myfile << "DP 0,1,2,3,5,4,0.10662037134170532\n";
  myfile.close();
  return 0;
}