Skip to content
Snippets Groups Projects
Verified Commit 4479ccdc authored by Paul Dechamps's avatar Paul Dechamps :speech_balloon:
Browse files

(feat) Added the ability to write surface Cps to file.

Dart interface is now able to write the surface pressure distribution.
parent 2e5bd864
No related branches found
No related tags found
1 merge request!1BLASTER v1.0
Pipeline #19841 failed
......@@ -76,6 +76,14 @@ class DartInterface(SolversInterface):
np.savetxt('Cp'+sfx+'.dat', data, fmt='%1.6e', delimiter=', ', header='x, y, z, Cp', comments='')
elif self.cfg['nDim'] == 3:
# Save surface cp
data = np.zeros((self.argOut['bnd'].nodes.size(), 4))
for i, n in enumerate(self.argOut['bnd'].nodes):
data[i,0] = n.pos[0]
data[i,1] = n.pos[1]
data[i,2] = n.pos[2]
data[i,3] = self.solver.Cp[n.row]
np.savetxt(self.argOut['msh'].name+'_Cp_surface'+sfx+'.dat', data, fmt='%1.6e', delimiter=', ', header='x, y, z, Cp', comments='')
import modules.dartflo.dart.utils as invUtils
if self.cfg['Format'] == 'vtk':
import os
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment