Skip to content

Instantly share code, notes, and snippets.

View pfsq's full-sized avatar

Pablo Fernandez pfsq

View GitHub Profile
@pfsq
pfsq / 7segmentTime.ino
Last active December 25, 2015 08:59
Display current time on a 7segment/4digit display with Arduino and Python.
/*
Original code:
11-02-2012
Spark Fun Electronics
Nathan Seidle
Adapted by:
12-10-2013
Pablo Fernández
@pfsq
pfsq / trainFlowAngles.java
Last active March 26, 2021 09:28
Snippet to show Pushover integration into a STAR-CCM+ Java macro.
/**
* This is the main method in the macro. It is executed when the macro is
* run in STAR-CCM+.
*/
public void execute() {
try {
// Find the current simulation
Simulation theSim =
getActiveSimulation();
@pfsq
pfsq / Drag promedio.ipynb
Created March 13, 2014 09:58
iPython Notebooks
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/**
* Design of Experiment: Free stream velocity from 50 to 300 kph in
* steps of 50 kph.
*
* Requirement: MacroUtils v3, available at macrohut.cd-adapco.com
*
* @author Pablo Fernandez (pfernandez@theansweris27.com)
*/
import java.io.*;
@pfsq
pfsq / drafting.java
Last active August 29, 2015 14:02
This macro will increase the distance between the trailing and leading vehicle and save reports and scenes.
/**
* Design of Experiment
*
* Requirement: MacroUtils v3, available at macrohut.cd-adapco.com
*
* @author Pablo Fernandez (pfernandez@theansweris27.com)
*/
import java.io.*;
import macroutils.*;
@pfsq
pfsq / Bokeh.ipynb
Created July 10, 2014 19:05
Bokeh error: 'charmap' codec can't encode characters in position 1999043-1999046: character maps to <undefined>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pfsq
pfsq / F1AerodynamicsWorkshop.ipynb
Last active March 28, 2016 17:34
SimScale's F1 Aerodynamic Workshop data post-processing.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pfsq
pfsq / sampleDict
Created June 5, 2016 07:44
sampleDict for the 2D Zero Pressure Gradient Flat Plate Verification Case in OpenFOAM.
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.4.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;