Const&Initial

public final class Const
{
	private static final String _am = "am";
	private static final String _pm = "pm";
	private static final String _eve = "extra_eve";
	private static final String _srcFormat = "src_format";
	private static final String _sheet_index = "sheet_index";
	private static final String _data_index = "data_index";
	private static final String _beginStatistic = "beginStatistic";
	private static GregorianCalendar c = new GregorianCalendar();
	
	private static Logger log = Logger.getLogger(Const.class);
	
	public static final SimpleDateFormat timeFormat = new SimpleDateFormat("HH:mm");
	public static SimpleDateFormat srcFormat;
	public static int beginStatistic;
	public static int sheet_index;
	public static int data_index;
	public static Calendar am = (Calendar) c.clone();
	public static Calendar pm = (Calendar) c.clone();
	public static Calendar eve = (Calendar) c.clone();
	
	static
	{
		try
		{
			srcFormat = new SimpleDateFormat(Initial.getString(_srcFormat));
			beginStatistic = Initial.getInt(_beginStatistic);
			sheet_index = Initial.getInt(_sheet_index);
			data_index = "abcdef".indexOf(Initial.getString(_data_index).toLowerCase());
			am.setTime(timeFormat.parse(Initial.getString(_am)));
			pm.setTime(timeFormat.parse(Initial.getString(_pm)));
			eve.setTime(timeFormat.parse(Initial.getString(_eve)));
		}
		catch (Exception e)
		{
			log.error(e);
		}
	}
	
	
}

Initial
public class Initial
{
	private static Properties pros = new Properties();
	private static Logger log = Logger.getLogger(Initial.class);
	
	static
	{
		try
		{
			pros.load(new FileInputStream("conf/jxl.properties"));
		}
		catch (Exception e)
		{
			log.error(e);
		}
	}
	
	public static String getString(String para)
	{
		if (para == null || para.length() == 0)
		{
			return "";
		}
		return pros.get(para).toString().trim();
	}

	public static int getInt(String para)
	{
		return Integer.valueOf(getString(para));
	}
	
	public static void main(String[] args) 
	{
		pros.list(System.out);
	}
	
}

 

No MRF models present No finite volume options present Constructing face velocity Uf Courant Number mean: 0.00893525 max: 105.988 [124] #0 Foam::error::printStack(Foam::Ostream&)[120] #0 Foam::error::printStack(Foam::Ostream&)[122] #0 Foam::error::printStack(Foam::Ostream&) at ??:? [124] #1 Foam::sigFpe::sigHandler(int) at ??:? [120] #1 Foam::sigFpe::sigHandler(int) at ??:? [122] #1 Foam::sigFpe::sigHandler(int) at ??:? [120] #2 ? at ??:? [122] #2 ? at ??:? [124] #2 ? in /lib64/libpthread.so.0 [120] #3 Foam::divide(Foam::Field<double>&, Foam::UList<double> const&, Foam::UList<double> const&) in /lib64/libpthread.so.0 [122] #3 Foam::divide(Foam::Field<double>&, Foam::UList<double> const&, Foam::UList<double> const&) in /lib64/libpthread.so.0 [124] #3 Foam::divide(Foam::Field<double>&, Foam::UList<double> const&, Foam::UList<double> const&) at ??:? [122] #4 at ??:? [120] #4 void Foam::divide<Foam::fvPatchField, Foam::volMesh>(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) at ??:? [124] #4 [121] #0 Foam::error::printStack(Foam::Ostream&)[123] #0 Foam::error::printStack(Foam::Ostream&)void Foam::divide<Foam::fvPatchField, Foam::volMesh>(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&)void Foam::divide<Foam::fvPatchField, Foam::volMesh>(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) at ??:? [120] #5 Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > Foam::operator/<Foam::fvPatchField, Foam::volMesh>(Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > const&, Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > const&) at ??:? [122] #5 Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > Foam::operator/<Foam::fvPatchField, Foam::volMesh>(Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > const&, Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > const&) at ??:? [124] #5 Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > Foam::operator/<Foam::fvPatchField, Foam::volMesh>(Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > const&, Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > const&) at ??:? [122] #6 Foam::kOmegaSSTBase<Foam::eddyViscosity<Foam::RASModel<Foam::IncompressibleTurbulenceModel<Foam::transportModel> > > >::F2() const at ??:? [120] #6 Foam::kOmegaSSTBase<Foam::eddyViscosity<Foam::RASModel<Foam::IncompressibleTurbulenceModel<Foam::transportModel> > > >::F2() const at ??:? [124] #6 Foam::kOmegaSSTBase<Foam::eddyViscosity<Foam::RASModel<Foam::IncompressibleTurbulenceModel<Foam::transportModel> > > >::F2() const at ??:? [120] #7 Foam::kOmegaSSTBase<Foam::eddyViscosity<Foam::RASModel<Foam::IncompressibleTurbulenceModel<Foam::transportModel> > > >::F23() const at ??:? [122] #7 Foam::kOmegaSSTBase<Foam::eddyViscosity<Foam::RASModel<Foam::IncompressibleTurbulenceModel<Foam::transportModel> > > >::F23() const at ??:? [124] #7 Foam::kOmegaSSTBase<Foam::eddyViscosity<Foam::RASModel<Foam::IncompressibleTurbulenceModel<Foam::transportModel> > > >::F23() const at ??:? [122] #8 Foam::kOmegaSSTBase<Foam::eddyViscosity<Foam::RASModel<Foam::IncompressibleTurbulenceModel<Foam::transportModel> > > >::correctNut(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) at ??:? [120] #8 Foam::kOmegaSSTBase<Foam::eddyViscosity<Foam::RASModel<Foam::IncompressibleTurbulenceModel<Foam::transportModel> > > >::correctNut(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) at ??:? [124] #8 Foam::kOmegaSSTBase<Foam::eddyViscosity<Foam::RASModel<Foam::IncompressibleTurbulenceModel<Foam::transportModel> > > >::correctNut(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) at ??:? [122] #9 Foam::RASModels::kOmegaSST<Foam::IncompressibleTurbulenceModel<Foam::transportModel> >::correctNut() at ??:? [120] #9 Foam::RASModels::kOmegaSST<Foam::IncompressibleTurbulenceModel<Foam::transportModel> >::correctNut() at ??:? [122] #10 at ??:? [120] #10 at ??:? [124] #9 Foam::RASModels::kOmegaSST<Foam::IncompressibleTurbulenceModel<Foam::transportModel> >::correctNut()?? at ??:? [124] #10 at ??:? [120] #11 __libc_start_main at ??:? [122] #11 __libc_start_main? in /lib64/libc.so.6 [120] #12 in /lib64/libc.so.6 [122] #12 at ??:? [124] #11 __libc_start_main?? at ??:? [localhost:23565] *** Process received signal *** [localhost:23565] Signal: Floating point exception (8) [localhost:23565] Signal code: (-6) [localhost:23565] Failing at address: 0x3e800005c0d [localhost:23565] [ 0] /lib64/libpthread.so.0(+0xf630)[0x7ffa29f89630] [localhost:23565] [ 1] /lib64/libpthread.so.0(raise+0x2b)[0x7ffa29f894fb] [localhost:23565] [ 2] /lib64/libpthread.so.0(+0xf630)[0x7ffa29f89630] [localhost:23565] [ 3] /home/f708/OpenFOAM/OpenFOAM-v2112/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4Foam6divideERNS_5FieldIdEERKNS_5UListIdEES6_+0x115)[0x7ffa2b161565] [localhost:23565] [ 4] pimpleFoam(_ZN4Foam6divideINS_12fvPatchFieldENS_7volMeshEEEvRNS_14GeometricFieldIdT_T0_EERKS6_S9_+0xa0)[0x441fe0] [localhost:23565] [ 5] /home/f708/OpenFOAM/OpenFOAM-v2112/platforms/linux64GccDPInt32Opt/lib/libfvOptions.so(_ZN4FoamdvINS_12fvPatchFieldENS_7volMeshEEENS_3tmpINS_14GeometricFieldIdT_T0_EEEERKS8_SA_+0x307)[0x7ffa2ed964e7] [localhost:23565] [ 6] /home/f708/OpenFOAM/OpenFOAM-v2112/platforms/linux64GccDPInt32Opt/lib/libincompressibleTurbulenceModels.so(_ZNK4Foam13kOmegaSSTBaseINS_13eddyViscosityINS_8RASModelINS_29IncompressibleTurbulenceModelINS_14transportModelEEEEEEEE2F2Ev+0xc7)[0x7ffa2d228337] [localhost:23565] [ 7] /home/f708/OpenFOAM/OpenFOAM-v2112/platforms/linux64GccDPInt32Opt/lib/libincompressibleTurbulenceModels.so(_ZNK4Foam13kOmegaSSTBaseINS_13eddyViscosityINS_8RASModelINS_29IncompressibleTurbulenceModelINS_14transportModelEEEEEEEE3F23Ev+0x17)[0x7ffa2d18f657] [localhost:23565] [ 8] /home/f708/OpenFOAM/OpenFOAM-v2112/platforms/linux64GccDPInt32Opt/lib/libincompressibleTurbulenceModels.so(_ZN4Foam13kOmegaSSTBaseINS_13eddyViscosityINS_8RASModelINS_29IncompressibleTurbulenceModelINS_14transportModelEEEEEEEE10correctNutERKNS_14GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEEE+0x3a)[0x7ffa2d224e4a] [localhost:23565] [ 9] /home/f708/OpenFOAM/OpenFOAM-v2112/platforms/linux64GccDPInt32Opt/lib/libincompressibleTurbulenceModels.so(_ZN4Foam9RASModels9kOmegaSSTINS_29IncompressibleTurbulenceModelINS_14transportModelEEEE10correctNutEv+0xa4)[0x7ffa2d236d24] [localhost:23565] [10] pimpleFoam[0x427d04] [localhost:23565] [11] /lib64/libc.so.6(__libc_start_main+0xf5)[0x7ffa29bce555] [localhost:23565] [12] pimpleFoam[0x42ce30] [localhost:23565] *** End of error message *** in /lib64/libc.so.6 [124] #12 at ??:? [localhost:23566] *** Process received signal *** [localhost:23566] Signal: Floating point exception (8) [localhost:23566] Signal code: (-6) [localhost:23566] Failing at address: 0x3e800005c0e [localhost:23566] [ 0] /lib64/libpthread.so.0(+0xf630)[0x7f98c8ef1630] [localhost:23566] [ 1] /lib64/libpthread.so.0(raise+0x2b)[0x7f98c8ef14fb] [localhost:23566] [ 2] /lib64/libpthread.so.0(+0xf630)[0x7f98c8ef1630] [localhost:23566] [ 3] /home/f708/OpenFOAM/OpenFOAM-v2112/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4Foam6divideERNS_5FieldIdEERKNS_5UListIdEES6_+0x115)[0x7f98ca0c9565] [localhost:23566] [ 4] pimpleFoam(_ZN4Foam6divideINS_12fvPatchFieldENS_7volMeshEEEvRNS_14GeometricFieldIdT_T0_EERKS6_S9_+0xa0)[0x441fe0] [localhost:23566] [ 5] /home/f708/OpenFOAM/OpenFOAM-v2112/platforms/linux64GccDPInt32Opt/lib/libfvOptions.so(_ZN4FoamdvINS_12fvPatchFieldENS_7volMeshEEENS_3tmpINS_14GeometricFieldIdT_T0_EEEERKS8_SA_+0x307)[0x7f98cdcfe4e7] [localhost:23566] [ 6] /home/f708/OpenFOAM/OpenFOAM-v2112/platforms/linux64GccDPInt32Opt/lib/libincompressibleTurbulenceModels.so(_ZNK4Foam13kOmegaSSTBaseINS_13eddyViscosityINS_8RASModelINS_29IncompressibleTurbulenceModelINS_14transportModelEEEEEEEE2F2Ev+0xc7)[0x7f98cc190337] [localhost:23566] [ 7] /home/f708/OpenFOAM/OpenFOAM-v2112/platforms/linux64GccDPInt32Opt/lib/libincompressibleTurbulenceModels.so(_ZNK4Foam13kOmegaSSTBaseINS_13eddyViscosityINS_8RASModelINS_29IncompressibleTurbulenceModelINS_14transportModelEEEEEEEE3F23Ev+0x17)[0x7f98cc0f7657] [localhost:23566] [ 8] /home/f708/OpenFOAM/OpenFOAM-v2112/platforms/linux64GccDPInt32Opt/lib/libincompressibleTurbulenceModels.so(_ZN4Foam13kOmegaSSTBaseINS_13eddyViscosityINS_8RASModelINS_29IncompressibleTurbulenceModelINS_14transportModelEEEEEEEE10correctNutERKNS_14GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEEE+0x3a)[0x7f98cc18ce4a] [localhost:23566] [ 9] /home/f708/OpenFOAM/OpenFOAM-v2112/platforms/linux64GccDPInt32Opt/lib/libincompressibleTurbulenceModels.so(_ZN4Foam9RASModels9kOmegaSSTINS_29IncompressibleTurbulenceModelINS_14transportModelEEEE10correctNutEv+0xa4)[0x7f98cc19ed24] [localhost:23566] [10] pimpleFoam[0x427d04] [localhost:23566] [11] /lib64/libc.so.6(__libc_start_main+0xf5)[0x7f98c8b36555] [localhost:23566] [12] pimpleFoam[0x42ce30] [localhost:23566] *** End of error message *** ? at ??:?
最新发布
08-17
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值